UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

109 lines (108 loc) 9.25 kB
{ "_args": [ [ { "raw": "copy-concurrently@^1.0.0", "scope": null, "escapedName": "copy-concurrently", "name": "copy-concurrently", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/move-concurrently" ] ], "_from": "copy-concurrently@>=1.0.0 <2.0.0", "_id": "copy-concurrently@1.0.5", "_inCache": true, "_location": "/copy-concurrently", "_nodeVersion": "8.4.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/copy-concurrently-1.0.5.tgz_1503701787867_0.12750811083242297" }, "_npmUser": { "name": "iarna", "email": "me@re-becca.org" }, "_npmVersion": "5.4.0", "_phantomChildren": {}, "_requested": { "raw": "copy-concurrently@^1.0.0", "scope": null, "escapedName": "copy-concurrently", "name": "copy-concurrently", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/move-concurrently" ], "_resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", "_shasum": "92297398cae34937fcafd6ec8139c18051f0b5e0", "_shrinkwrap": null, "_spec": "copy-concurrently@^1.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/move-concurrently", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org", "url": "http://re-becca.org/" }, "bugs": { "url": "https://github.com/npm/copy-concurrently/issues" }, "dependencies": { "aproba": "^1.1.1", "fs-write-stream-atomic": "^1.0.8", "iferr": "^0.1.5", "mkdirp": "^0.5.1", "rimraf": "^2.5.4", "run-queue": "^1.0.0" }, "description": "Promises of copies of files, directories and symlinks, with concurrency controls and win32 junction fallback.", "devDependencies": { "standard": "^8.6.0", "tacks": "^1.2.6", "tap": "^10.1.1" }, "directories": { "test": "test" }, "dist": { "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", "shasum": "92297398cae34937fcafd6ec8139c18051f0b5e0", "tarball": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz" }, "files": [ "copy.js", "is-windows.js" ], "gitHead": "3381d20cdafa55a7aa42ab7b79a2b34f971a44c4", "homepage": "https://www.npmjs.com/package/copy-concurrently", "keywords": [ "copy", "cpr" ], "license": "ISC", "main": "copy.js", "maintainers": [ { "name": "iarna", "email": "me@re-becca.org" } ], "name": "copy-concurrently", "optionalDependencies": {}, "readme": "# copy-concurrently\n\nCopy files, directories and symlinks\n\n```\nconst copy = require('copy-concurrently')\ncopy('/path/to/thing', '/new/path/thing').then(() => {\n // this is now copied\n}).catch(err => {\n // oh noooo\n})\n```\n\nCopies files, directories and symlinks. Ownership is maintained when\nrunning as root, permissions are always maintained. On Windows, if symlinks\nare unavailable then junctions will be used.\n\n## PUBLIC INTERFACE\n\n### copy(from, to, [options]) → Promise\n\nRecursively copies `from` to `to` and resolves its promise when finished. \nIf `to` already exists then the promise will be rejected with an `EEXIST`\nerror.\n\nOptions are:\n\n* maxConcurrency – (Default: `1`) The maximum number of concurrent copies to do at once.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n\nOptions can also include dependency injection:\n\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* writeStreamAtomic - (Default: `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n\n## EXTENSION INTERFACE\n\nOrdinarily you'd only call `copy` above. But it's possible to use it's\ncomponent functions directly. This is useful if, say, you're writing\n[move-concurently](https://npmjs.com/package/move-concurrently).\n\n### copy.file(from, to, options) → Promise\n\nCopies an ordinary file `from` to destination `to`. Uses\n`fs-write-stream-atomic` to ensure that the file is either entirely copied\nor not at all.\n\nOptions are:\n\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n\n### copy.symlink(from, to, options) → Promise\n\nCopies a symlink `from` to destination `to`. If you're using Windows and\nsymlinking fails and what you're linking is a directory then junctions will\nbe tried instead.\n\nOptions are:\n\n* top - The top level the copy is being run from. This is used to determine\n if the symlink destination is within the set of files we're copying or\n outside it.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n\n### copy.recurse(from, to, options) → Promise\n\nReads all of the files in directory `from` and adds them to the `queue`\nusing `recurseWith` (by default `copy.item`).\n\nOptions are:\n\n* queue - A [`run-queue`](https://npmjs.com/package/run-queue) object to add files found inside `from` to.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n\n### copy.item(from, to, options) → Promise\n\nCopies some kind of `from` to destination `to`. This looks at the filetype\nand calls `copy.file`, `copy.symlink` or `copy.recurse` as appropriate.\n\nSymlink copies are queued with a priority such that they happen after all\nfile and directory copies as you can't create a junction on windows to a\nfile that doesn't exist yet.\n\nOptions are:\n\n* top - The top level the copy is being run from. This is used to determine\n if the symlink destination is within the set of files we're copying or\n outside it.\n* queue - The [`run-queue`](https://npmjs.com/package/run-queue) object to\n pass to `copy.recurse` if `from` is a directory.\n* recurseWith - (Default: `copy.item`) The function to call on each file after recursing into a directory.\n* uid, gid - (Optional) If `getuid()` is `0` then this and gid will be used to\n set the user and group of `to`. If uid is present then gid must be too.\n* mode - (Optional) If set then `to` will have its perms set to `mode`.\n* fs - (Default: `require('fs')`) The filesystem module to use. Can be used\n to use `graceful-fs` or to inject a mock.\n* getuid - (Default: `process.getuid`) A function that returns the current UID. Used to inject a mock.\n* isWindows - (Default: `process.platform === 'win32'`) If true enables Windows symlink semantics. This requires\n an extra `stat` to determine if the destination of a symlink is a file or directory. If symlinking a directory\n fails then we'll try making a junction instead.\n* Promise - (Default: `global.Promise`) The promise implementation to use, defaults to Node's.\n* writeStreamAtomic - (Default `require('fs-write-stream-atomic')`) The\n implementation of `writeStreamAtomic` to use. Used to inject a mock.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/npm/copy-concurrently.git" }, "scripts": { "test": "standard && tap --coverage test" }, "version": "1.0.5" }