{"_id":"@types/jsftp","_rev":"3803996","name":"@types/jsftp","description":"TypeScript definitions for jsftp","dist-tags":{"latest":"2.1.5","ts2.0":"2.1.0","ts2.1":"2.1.0","ts2.2":"2.1.0","ts2.3":"2.1.0","ts2.4":"2.1.0","ts2.5":"2.1.0","ts2.6":"2.1.0","ts2.7":"2.1.0","ts2.8":"2.1.0","ts2.9":"2.1.0","ts3.0":"2.1.0","ts3.1":"2.1.0","ts3.2":"2.1.0","ts3.3":"2.1.0","ts3.4":"2.1.0","ts3.5":"2.1.0","ts3.6":"2.1.1","ts3.7":"2.1.2","ts3.8":"2.1.2","ts3.9":"2.1.2","ts4.0":"2.1.2","ts4.1":"2.1.2","ts4.2":"2.1.2","ts4.3":"2.1.2","ts4.4":"2.1.2","ts4.5":"2.1.5","ts4.6":"2.1.5","ts4.7":"2.1.5","ts4.8":"2.1.5","ts4.9":"2.1.5","ts5.0":"2.1.5","ts5.1":"2.1.5","ts5.2":"2.1.5","ts5.3":"2.1.5","ts5.4":"2.1.5","ts5.5":"2.1.5","ts5.6":"2.1.5","ts5.7":"2.1.5","ts5.8":"2.1.5","ts5.9":"2.1.5"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-06-05T10:55:20.000Z","created":"2018-09-08T01:23:09.315Z","2.1.5":"2023-11-07T08:45:42.370Z","2.1.4":"2023-10-18T06:09:24.261Z","2.1.3":"2023-09-15T20:58:51.804Z","2.1.2":"2021-10-26T17:01:53.304Z","2.1.1":"2021-07-08T16:50:32.608Z","2.1.0":"2018-09-08T01:23:09.315Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"versions":{"2.1.5":{"name":"@types/jsftp","version":"2.1.5","description":"TypeScript definitions for jsftp","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","githubUsername":"xyleen","url":"https://github.com/xyleen"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"0e5b0c5c6abe35986064c98e7857a36b91e530a403598f1bb0d1ece6de7535ec","typeScriptVersion":"4.5","_id":"@types/jsftp@2.1.5","dist":{"shasum":"440c286ca8ca711ef76bd86732bea41e88068f43","size":2075,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.5.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.5_1699346742121_0.845472181044866"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T08:45:42.370Z","publish_time":1699346742370,"_source_registry_name":"default","_cnpm_publish_time":1699346742370},"2.1.4":{"name":"@types/jsftp","version":"2.1.4","description":"TypeScript definitions for jsftp","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","githubUsername":"xyleen","url":"https://github.com/xyleen"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"5ac93b83d1d9c6856c8860355d74e3ca34b50ae72181af99bcb9be071872c8c7","typeScriptVersion":"4.5","_id":"@types/jsftp@2.1.4","dist":{"shasum":"1220dbdb92dc9fddbcc8fb92698299c6057e6d34","size":2077,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.4_1697609364116_0.7340590328897183"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T06:09:24.261Z","publish_time":1697609364261,"_source_registry_name":"default","_cnpm_publish_time":1697609364261},"2.1.3":{"name":"@types/jsftp","version":"2.1.3","description":"TypeScript definitions for jsftp","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","url":"https://github.com/xyleen","githubUsername":"xyleen"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"98768e9a4a1f4330e7a9ded052216a630f9c30feef45c4833230d0e2539802ba","typeScriptVersion":"4.5","_id":"@types/jsftp@2.1.3","dist":{"shasum":"86eb3254b6d9d5650f655fe5de63db8589e4eb7c","size":2138,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.3_1694811531603_0.9472163682924846"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-15T20:58:51.804Z","publish_time":1694811531804,"_source_registry_name":"default","_cnpm_publish_time":1694811531804},"2.1.2":{"name":"@types/jsftp","version":"2.1.2","description":"TypeScript definitions for jsftp","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","url":"https://github.com/xyleen","githubUsername":"xyleen"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"dae2f8660c270408746014fc8447da6d6faf4bed9108ab28f96a3ec7f26cd42d","typeScriptVersion":"3.7","_id":"@types/jsftp@2.1.2","dist":{"shasum":"4acfe315d7d2d73de84309554a8d1374bba37d4e","size":2083,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.2_1635267713167_0.7265898383467659"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T23:36:03.541Z","publish_time":1635267713304,"_cnpm_publish_time":1635267713304},"2.1.1":{"name":"@types/jsftp","version":"2.1.1","description":"TypeScript definitions for jsftp","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","url":"https://github.com/xyleen","githubUsername":"xyleen"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/jsftp"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"0ddee6b3ca74d18f897c7e08f38b0a96657ab535bad53f8cbe7108762010be84","typeScriptVersion":"3.6","_id":"@types/jsftp@2.1.1","dist":{"shasum":"777e563fca9488754c44400129a4b7f5f234ef83","size":2071,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.1_1625763032476_0.4439476376734106"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T23:36:02.658Z","publish_time":1625763032608,"_cnpm_publish_time":1625763032608},"2.1.0":{"name":"@types/jsftp","version":"2.1.0","description":"TypeScript definitions for jsftp","license":"MIT","contributors":[{"name":"Konrad Księski","url":"https://github.com/xyleen","githubUsername":"xyleen"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/events":"*","@types/node":"*"},"typesPublisherContentHash":"45d0e203f75728c786962cc7d1d49f7c3b970a1ce431da1eaddbc7ccc7159fd7","typeScriptVersion":"2.0","_id":"@types/jsftp@2.1.0","dist":{"shasum":"1af00d7c501ce70d413daee9a63033e2d1269a9d","size":1985,"noattachment":false,"key":"/@types/jsftp/-/@types/jsftp-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/jsftp/download/@types/jsftp-2.1.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jsftp_2.1.0_1536369789190_0.25743269132204216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T23:36:00.935Z","publish_time":1536369789315,"_cnpm_publish_time":1536369789315}},"readme":"# Installation\r\n> `npm install --save @types/jsftp`\r\n\r\n# Summary\r\nThis package contains type definitions for jsftp (https://github.com/sergi/jsftp).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp/index.d.ts)\r\n````ts\r\n/// <reference types=\"node\" />\n\nimport { EventEmitter } from \"events\";\nimport { Socket } from \"net\";\n\nexport interface JsftpOpts {\n    host?: string | undefined;\n    port?: number | undefined;\n    user?: string | undefined;\n    pass?: string | undefined;\n    createSocket?: (({ port, host }: { port: number; host: string }, firstAction: () => {}) => Socket) | undefined;\n    useList?: boolean | undefined;\n}\n\nexport type ErrorCallback = (err: Error) => void;\nexport type RawCallback = (err: Error, data: { code: number; text: string }) => void;\nexport type ListCallback = (err: Error, dirContents: string) => void;\nexport type GetCallback = (err: Error, socket: Socket) => void;\nexport type LsCallback = (err: Error, res: [{ name: string }]) => void;\n\nexport default class Ftp extends EventEmitter {\n    constructor(opts: JsftpOpts);\n\n    ls(filePath: string, callback: LsCallback): void;\n\n    list(filePath: string, callback: ListCallback): void;\n\n    get(remotePath: string, callback: GetCallback): void;\n    get(remotePath: string, localPath: string, callback: ErrorCallback): void;\n\n    put(source: string | Buffer | NodeJS.ReadableStream, remotePath: string, callback: ErrorCallback): void;\n\n    rename(from: string, to: string, callback: ErrorCallback): void;\n\n    // Ftp.raw(command, params, callback)\n    raw(command: string, callback: RawCallback): void;\n    raw(command: string, arg1: any, callback: RawCallback): void;\n    raw(command: string, arg1: any, arg2: any, callback: RawCallback): void;\n    raw(command: string, arg1: any, arg2: any, arg3: any, callback: RawCallback): void;\n    raw(command: string, arg1: any, arg2: any, arg3: any, arg4: any, callback: RawCallback): void;\n    auth(user: string, pass: string, callback: RawCallback): void;\n    keepAlive(timeInMs?: number): void;\n\n    destroy(): void;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 03:09:37 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n\r\n# Credits\r\nThese definitions were written by [Konrad Księski](https://github.com/xyleen).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsftp","license":"MIT"}