blob: 5ca86cc5bf3ab1f3fb363f03aeefb8e54d30d2b4 [file] [log] [blame]
{
"_from": "fs-vacuum@1.2.9",
"_id": "fs-vacuum@1.2.9",
"_location": "/npm/fs-vacuum",
"_nodeVersion": "5.10.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/fs-vacuum-1.2.9.tgz_1461273179969_0.39465441973879933"
},
"_npmUser": {
"email": "ogd@aoaioxxysz.net",
"name": "othiym23"
},
"_npmVersion": "3.8.7",
"_phantomChildren": {},
"_requiredBy": [
"/npm"
],
"_resolved": "https://registry.npmjs.org/fs-vacuum/-/fs-vacuum-1.2.9.tgz",
"_shasum": "4f90193ab8ea02890995bcd4e804659a5d366b2d",
"_shrinkwrap": null,
"author": {
"email": "ogd@aoaioxxysz.net",
"name": "Forrest L Norvell"
},
"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": "4f90193ab8ea02890995bcd4e804659a5d366b2d",
"tarball": "https://registry.npmjs.org/fs-vacuum/-/fs-vacuum-1.2.9.tgz"
},
"gitHead": "acff37c635731a0169367acb32338d9d4e7d615c",
"homepage": "https://github.com/npm/fs-vacuum",
"keywords": [
"rm",
"rimraf",
"clean"
],
"license": "ISC",
"main": "vacuum.js",
"maintainers": [
{
"email": "ogd@aoaioxxysz.net",
"name": "othiym23"
},
{
"email": "kat@sykosomatic.org",
"name": "zkat"
}
],
"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\", 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.9"
}