@zkochan/pnpm
Version:
Fast, disk space efficient package manager
106 lines (105 loc) • 3.86 kB
JSON
{
"_args": [
[
{
"raw": "fs-vacuum@1.2.10",
"scope": null,
"escapedName": "fs-vacuum",
"name": "fs-vacuum",
"rawSpec": "1.2.10",
"spec": "1.2.10",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/utils"
]
],
"_from": "fs-vacuum@1.2.10",
"_id": "fs-vacuum@1.2.10",
"_inCache": true,
"_location": "/fs-vacuum",
"_nodeVersion": "7.7.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/fs-vacuum-1.2.10.tgz_1489187970453_0.7888825018890202"
},
"_npmUser": {
"name": "zkat",
"email": "kat@sykosomatic.org"
},
"_npmVersion": "4.4.2",
"_phantomChildren": {},
"_requested": {
"raw": "fs-vacuum@1.2.10",
"scope": null,
"escapedName": "fs-vacuum",
"name": "fs-vacuum",
"rawSpec": "1.2.10",
"spec": "1.2.10",
"type": "version"
},
"_requiredBy": [
"/@pnpm/utils"
],
"_resolved": "https://registry.npmjs.org/fs-vacuum/-/fs-vacuum-1.2.10.tgz",
"_shasum": "b7629bec07a4031a2548fdf99f5ecf1cc8b31e36",
"_shrinkwrap": null,
"_spec": "fs-vacuum@1.2.10",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/utils",
"author": {
"name": "Forrest L Norvell",
"email": "ogd@aoaioxxysz.net"
},
"bugs": {
"url": "https://github.com/npm/fs-vacuum/issues"
},
"dependencies": {
"graceful-fs": "^4.1.2",
"path-is-inside": "^1.0.1",
"rimraf": "^2.5.2"
},
"description": "recursively remove empty directories -- to a point",
"devDependencies": {
"errno": "~0.1.0",
"mkdirp": "^0.5.1",
"require-inject": "~1.3.0",
"standard": "^6.0.8",
"tap": "^5.7.1",
"tmp": "0.0.28"
},
"directories": {},
"dist": {
"shasum": "b7629bec07a4031a2548fdf99f5ecf1cc8b31e36",
"tarball": "https://registry.npmjs.org/fs-vacuum/-/fs-vacuum-1.2.10.tgz"
},
"gitHead": "e2daf9ab461004d10cc934e286052a6cd72a6127",
"homepage": "https://github.com/npm/fs-vacuum",
"keywords": [
"rm",
"rimraf",
"clean"
],
"license": "ISC",
"main": "vacuum.js",
"maintainers": [
{
"name": "othiym23",
"email": "ogd@aoaioxxysz.net"
},
{
"name": "zkat",
"email": "kat@sykosomatic.org"
}
],
"name": "fs-vacuum",
"optionalDependencies": {},
"readme": "# fs-vacuum\n\nRemove the empty branches of a directory tree, optionally up to (but not\nincluding) a specified base directory. Optionally nukes the leaf directory.\n\n## Usage\n\n```javascript\nvar logger = require(\"npmlog\");\nvar vacuum = require(\"fs-vacuum\");\n\nvar options = {\n base : \"/path/to/my/tree/root\",\n purge : true,\n log : logger.silly.bind(logger, \"myCleanup\")\n};\n\n/* Assuming there are no other files or directories in \"out\", \"to\", or \"my\",\n * the final path will just be \"/path/to/my/tree/root\".\n */\nvacuum(\"/path/to/my/tree/root/out/to/my/files\", options, function (error) {\n if (error) console.error(\"Unable to cleanly vacuum:\", error.message);\n});\n```\n# vacuum(directory, options, callback)\n\n* `directory` {String} Leaf node to remove. **Must be a directory, symlink, or file.**\n* `options` {Object}\n * `base` {String} No directories at or above this level of the filesystem will be removed.\n * `purge` {Boolean} If set, nuke the whole leaf directory, including its contents.\n * `log` {Function} A logging function that takes `npmlog`-compatible argument lists.\n* `callback` {Function} Function to call once vacuuming is complete.\n * `error` {Error} What went wrong along the way, if anything.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/fs-vacuum.git"
},
"scripts": {
"test": "standard && tap test/*.js"
},
"version": "1.2.10"
}