101 lines
4.9 KiB
JSON
101 lines
4.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "ncp@~2.0.0",
|
|
"scope": null,
|
|
"escapedName": "ncp",
|
|
"name": "ncp",
|
|
"rawSpec": "~2.0.0",
|
|
"spec": ">=2.0.0 <2.1.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/mv"
|
|
]
|
|
],
|
|
"_from": "ncp@>=2.0.0 <2.1.0",
|
|
"_id": "ncp@2.0.0",
|
|
"_inCache": true,
|
|
"_location": "/ncp",
|
|
"_nodeVersion": "0.13.0-pre",
|
|
"_npmUser": {
|
|
"name": "mmalecki",
|
|
"email": "me@mmalecki.com"
|
|
},
|
|
"_npmVersion": "2.6.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "ncp@~2.0.0",
|
|
"scope": null,
|
|
"escapedName": "ncp",
|
|
"name": "ncp",
|
|
"rawSpec": "~2.0.0",
|
|
"spec": ">=2.0.0 <2.1.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/mv",
|
|
"/xdl"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
|
|
"_shasum": "195a21d6c46e361d2fb1281ba38b91e9df7bdbb3",
|
|
"_shrinkwrap": null,
|
|
"_spec": "ncp@~2.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/mv",
|
|
"author": {
|
|
"name": "AvianFlu",
|
|
"email": "charlie@charlieistheman.com"
|
|
},
|
|
"bin": {
|
|
"ncp": "./bin/ncp"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/AvianFlu/ncp/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "Asynchronous recursive file copy utility.",
|
|
"devDependencies": {
|
|
"mocha": "1.15.x",
|
|
"read-dir-files": "0.0.x",
|
|
"rimraf": "1.0.x"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "195a21d6c46e361d2fb1281ba38b91e9df7bdbb3",
|
|
"tarball": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz"
|
|
},
|
|
"engine": {
|
|
"node": ">=0.10"
|
|
},
|
|
"gitHead": "93c7c6c719e2a4944dc09a16178b09aef428cdf0",
|
|
"homepage": "https://github.com/AvianFlu/ncp#readme",
|
|
"keywords": [
|
|
"cli",
|
|
"copy"
|
|
],
|
|
"license": "MIT",
|
|
"main": "./lib/ncp.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "avianflu",
|
|
"email": "charlie@charlieistheman.com"
|
|
},
|
|
{
|
|
"name": "mmalecki",
|
|
"email": "me@mmalecki.com"
|
|
}
|
|
],
|
|
"name": "ncp",
|
|
"optionalDependencies": {},
|
|
"readme": "# ncp - Asynchronous recursive file & directory copying\n\n[![Build Status](https://secure.travis-ci.org/AvianFlu/ncp.png)](http://travis-ci.org/AvianFlu/ncp)\n\nThink `cp -r`, but pure node, and asynchronous. `ncp` can be used both as a CLI tool and programmatically.\n\n## Command Line usage\n\nUsage is simple: `ncp [source] [dest] [--limit=concurrency limit]\n[--filter=filter] --stopOnErr`\n\nThe 'filter' is a Regular Expression - matched files will be copied.\n\nThe 'concurrency limit' is an integer that represents how many pending file system requests `ncp` has at a time.\n\n'stoponerr' is a boolean flag that will tell `ncp` to stop immediately if any\nerrors arise, rather than attempting to continue while logging errors. The default behavior is to complete as many copies as possible, logging errors along the way.\n\nIf there are no errors, `ncp` will output `done.` when complete. If there are errors, the error messages will be logged to `stdout` and to `./ncp-debug.log`, and the copy operation will attempt to continue.\n\n## Programmatic usage\n\nProgrammatic usage of `ncp` is just as simple. The only argument to the completion callback is a possible error. \n\n```javascript\nvar ncp = require('ncp').ncp;\n\nncp.limit = 16;\n\nncp(source, destination, function (err) {\n if (err) {\n return console.error(err);\n }\n console.log('done!');\n});\n```\n\nYou can also call ncp like `ncp(source, destination, options, callback)`. \n`options` should be a dictionary. Currently, such options are available:\n\n * `options.filter` - a `RegExp` instance, against which each file name is\n tested to determine whether to copy it or not, or a function taking single\n parameter: copied file name, returning `true` or `false`, determining\n whether to copy file or not.\n\n * `options.transform` - a function: `function (read, write) { read.pipe(write) }`\n used to apply streaming transforms while copying.\n\n * `options.clobber` - boolean=true. if set to false, `ncp` will not overwrite \n destination files that already exist.\n\n * `options.dereference` - boolean=false. If set to true, `ncp` will follow symbolic\n links. For example, a symlink in the source tree pointing to a regular file\n will become a regular file in the destination tree. Broken symlinks will result in\n errors.\n\n * `options.stopOnErr` - boolean=false. If set to true, `ncp` will behave like `cp -r`,\n and stop on the first error it encounters. By default, `ncp` continues copying, logging all\n errors and returning an array.\n\n * `options.errs` - stream. If `options.stopOnErr` is `false`, a stream can be provided, and errors will be written to this stream.\n\nPlease open an issue if any bugs arise. As always, I accept (working) pull requests, and refunds are available at `/dev/null`.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/AvianFlu/ncp.git"
|
|
},
|
|
"scripts": {
|
|
"test": "mocha -R spec"
|
|
},
|
|
"version": "2.0.0"
|
|
}
|