GT2/GT2-Android/node_modules/ftp/package.json

96 lines
12 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "ftp@~0.3.10",
"scope": null,
"escapedName": "ftp",
"name": "ftp",
"rawSpec": "~0.3.10",
"spec": ">=0.3.10 <0.4.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/get-uri"
]
],
"_from": "ftp@>=0.3.10 <0.4.0",
"_id": "ftp@0.3.10",
"_inCache": true,
"_location": "/ftp",
"_npmUser": {
"name": "mscdex",
"email": "mscdex@mscdex.net"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"raw": "ftp@~0.3.10",
"scope": null,
"escapedName": "ftp",
"name": "ftp",
"rawSpec": "~0.3.10",
"spec": ">=0.3.10 <0.4.0",
"type": "range"
},
"_requiredBy": [
"/get-uri"
],
"_resolved": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz",
"_shasum": "9197d861ad8142f3e63d5a83bfe4c59f7330885d",
"_shrinkwrap": null,
"_spec": "ftp@~0.3.10",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/get-uri",
"author": {
"name": "Brian White",
"email": "mscdex@mscdex.net"
},
"bugs": {
"url": "https://github.com/mscdex/node-ftp/issues"
},
"dependencies": {
"readable-stream": "1.1.x",
"xregexp": "2.0.0"
},
"description": "An FTP client module for node.js",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "9197d861ad8142f3e63d5a83bfe4c59f7330885d",
"tarball": "https://registry.npmjs.org/ftp/-/ftp-0.3.10.tgz"
},
"engines": {
"node": ">=0.8.0"
},
"homepage": "https://github.com/mscdex/node-ftp#readme",
"keywords": [
"ftp",
"client",
"transfer"
],
"licenses": [
{
"type": "MIT",
"url": "http://github.com/mscdex/node-ftp/raw/master/LICENSE"
}
],
"main": "./lib/connection",
"maintainers": [
{
"name": "mscdex",
"email": "mscdex@mscdex.net"
}
],
"name": "ftp",
"optionalDependencies": {},
"readme": "Description\n===========\n\nnode-ftp is an FTP client module for [node.js](http://nodejs.org/) that provides an asynchronous interface for communicating with an FTP server.\n\n\nRequirements\n============\n\n* [node.js](http://nodejs.org/) -- v0.8.0 or newer\n\n\nInstall\n=======\n\n npm install ftp\n\n\nExamples\n========\n\n* Get a directory listing of the current (remote) working directory:\n\n```javascript\n var Client = require('ftp');\n\n var c = new Client();\n c.on('ready', function() {\n c.list(function(err, list) {\n if (err) throw err;\n console.dir(list);\n c.end();\n });\n });\n // connect to localhost:21 as anonymous\n c.connect();\n```\n\n* Download remote file 'foo.txt' and save it to the local file system:\n\n```javascript\n var Client = require('ftp');\n var fs = require('fs');\n\n var c = new Client();\n c.on('ready', function() {\n c.get('foo.txt', function(err, stream) {\n if (err) throw err;\n stream.once('close', function() { c.end(); });\n stream.pipe(fs.createWriteStream('foo.local-copy.txt'));\n });\n });\n // connect to localhost:21 as anonymous\n c.connect();\n```\n\n* Upload local file 'foo.txt' to the server:\n\n```javascript\n var Client = require('ftp');\n var fs = require('fs');\n\n var c = new Client();\n c.on('ready', function() {\n c.put('foo.txt', 'foo.remote-copy.txt', function(err) {\n if (err) throw err;\n c.end();\n });\n });\n // connect to localhost:21 as anonymous\n c.connect();\n```\n\n\nAPI\n===\n\nEvents\n------\n\n* **greeting**(< _string_ >msg) - Emitted after connection. `msg` is the text the server sent upon connection.\n\n* **ready**() - Emitted when connection and authentication were sucessful.\n\n* **close**(< _boolean_ >hadErr) - Emitted when the connection has fully closed.\n\n* **end**() - Emitted when the connection has ended.\n\n* **error**(< _Error_ >err) - Emitted when an error occurs. In case of protocol-level errors, `err` contains a 'code' property that references the related 3-digit FTP response code.\n\n\nMethods\n-------\n\n**\\* Note: As with the 'error' event, any error objects passed to callbacks will have a 'code' property for protocol-level errors.**\n\n* **(constructor)**() - Creates and returns a new FTP client instance.\n\n* **connect**(< _object_ >config) - _(void)_ - Connects to an FTP server. Valid config properties:\n\n * host - _string_ - The hostname or IP address of the FTP server. **Default:** 'localhost'\n\n * port - _integer_ - The port of the FTP server. **Default:** 21\n\n * secure - _mixed_ - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) **Default:** false\n\n * secureOptions - _object_ - Additional options to be passed to `tls.connect()`. **Default:** (none)\n\n * user - _string_ - Username for authentication. **Default:** 'anonymous'\n\n * password - _string_ - Password for authentication. **Default:** 'anonymous@'\n\n * connTimeout - _integer_ - How long (in milliseconds) to wait for the control connection to be established. **Default:** 10000\n\n * pasvTimeout - _integer_ - How long (in milliseconds) to wait for a PASV data connection to be established. **Default:** 10000\n\n * keepalive - _integer_ - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. **Default:** 10000\n\n* **end**() - _(void)_ - Closes the connection to the server after any/all enqueued commands have been executed.\n\n* **destroy**() - _(void)_ - Closes the connection to the server immediately.\n\n### Required \"standard\" commands (RFC 959)\n\n* **list**([< _string_ >path, ][< _boolean_ >useCompression, ]< _function_ >callback) - _(void)_ - Retrieves the directory listing of `path`. `path` defaults to the current working directory. `useCompression` defaults to false. `callback` has 2 parameters: < _Error_ >err, <
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/mscdex/node-ftp.git"
},
"scripts": {
"test": "node test/test.js"
},
"version": "0.3.10"
}