diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-12-11 06:11:57 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-12-11 07:00:03 +0300 |
commit | b49199ac96dfb1afe5719286621a318576dd69ae (patch) | |
tree | 573c7af63ceb650e73500f5b354f5f397f867601 | |
parent | 66324189a734a1665e1b78a06ba44089d9c3a11c (diff) |
rimraf@2.4.4
Document `disableGlob` option.
Fixes: isaacs/rimraf#76
Credit: @zerok
Reviewed-By: @othiym23
PR-URL: https://github.com/isaacs/rimraf/pull/89
-rw-r--r-- | node_modules/rimraf/README.md | 9 | ||||
-rw-r--r-- | node_modules/rimraf/package.json | 99 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 82 insertions, 28 deletions
diff --git a/node_modules/rimraf/README.md b/node_modules/rimraf/README.md index 18659f67f..de7c4bbfa 100644 --- a/node_modules/rimraf/README.md +++ b/node_modules/rimraf/README.md @@ -1,12 +1,17 @@ [![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies) -The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node. +The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node. Install with `npm install rimraf`, or just drop rimraf.js somewhere. ## API -`rimraf(f, callback)` +`rimraf(f, [opts], callback)` + +The first parameter will be interpreted as a globbing pattern for files. If you +want to disable globbing you can do so with `opts.disableGlob` (defaults to +`false`). This might be handy, for instance, if you have filenames that contain +globbing wildcard characters. The callback will be called with an error if there is one. Certain errors are handled for you: diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index 29eb35b6c..eb5fb86f6 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -1,45 +1,94 @@ { - "name": "rimraf", - "version": "2.4.3", - "main": "rimraf.js", - "description": "A deep deletion module for node (like `rm -rf`)", - "author": { - "name": "Isaac Z. Schlueter", + "_args": [ + [ + "rimraf@~2.4.4", + "/Users/ogd/Documents/projects/npm/npm" + ] + ], + "_from": "rimraf@>=2.4.4 <2.5.0", + "_id": "rimraf@2.4.4", + "_inCache": true, + "_installable": true, + "_location": "/rimraf", + "_nodeVersion": "4.0.0", + "_npmUser": { "email": "i@izs.me", - "url": "http://blog.izs.me/" + "name": "isaacs" }, - "license": "ISC", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/rimraf.git" + "_npmVersion": "3.3.2", + "_phantomChildren": {}, + "_requested": { + "name": "rimraf", + "raw": "rimraf@~2.4.4", + "rawSpec": "~2.4.4", + "scope": null, + "spec": ">=2.4.4 <2.5.0", + "type": "range" }, - "scripts": { - "test": "tap test/*.js" + "_requiredBy": [ + "/", + "/fs-vacuum", + "/fstream", + "/node-gyp", + "/npm-registry-client", + "/standard/standard-engine/eslint/file-entry-cache/flat-cache/del", + "/tap/nyc", + "/tap/nyc/spawn-wrap" + ], + "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.4.tgz", + "_shasum": "b528ce2ebe0e6d89fb03b265de11d61da0dbcf82", + "_shrinkwrap": null, + "_spec": "rimraf@~2.4.4", + "_where": "/Users/ogd/Documents/projects/npm/npm", + "author": { + "email": "i@izs.me", + "name": "Isaac Z. Schlueter", + "url": "http://blog.izs.me/" }, "bin": { "rimraf": "./bin.js" }, + "bugs": { + "url": "https://github.com/isaacs/rimraf/issues" + }, "dependencies": { "glob": "^5.0.14" }, + "description": "A deep deletion module for node (like `rm -rf`)", + "devDependencies": { + "mkdirp": "^0.5.1", + "tap": "^1.3.1" + }, + "directories": {}, + "dist": { + "shasum": "b528ce2ebe0e6d89fb03b265de11d61da0dbcf82", + "tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.4.tgz" + }, "files": [ "LICENSE", "README.md", "bin.js", "rimraf.js" ], - "devDependencies": { - "mkdirp": "^0.5.1", - "tap": "^1.3.1" + "gitHead": "62ae8a4037e7190691eeab35265aed1c768d23e3", + "homepage": "https://github.com/isaacs/rimraf#readme", + "license": "ISC", + "main": "rimraf.js", + "maintainers": [ + { + "name": "isaacs", + "email": "i@izs.me" + } + ], + "name": "rimraf", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/isaacs/rimraf.git" }, - "readme": "[![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies)\n\nThe [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node. \n\nInstall with `npm install rimraf`, or just drop rimraf.js somewhere.\n\n## API\n\n`rimraf(f, callback)`\n\nThe callback will be called with an error if there is one. Certain\nerrors are handled for you:\n\n* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of\n `opts.maxBusyTries` times before giving up, adding 100ms of wait\n between each attempt. The default `maxBusyTries` is 3.\n* `ENOENT` - If the file doesn't exist, rimraf will return\n successfully, since your desired outcome is already the case.\n* `EMFILE` - Since `readdir` requires opening a file descriptor, it's\n possible to hit `EMFILE` if too many file descriptors are in use.\n In the sync case, there's nothing to be done for this. But in the\n async case, rimraf will gradually back off with timeouts up to\n `opts.emfileWait` ms, which defaults to 1000.\n\n## rimraf.sync\n\nIt can remove stuff synchronously, too. But that's not so good. Use\nthe async API. It's better.\n\n## CLI\n\nIf installed with `npm install rimraf -g` it can be used as a global\ncommand `rimraf <path> [<path> ...]` which is useful for cross platform support.\n\n## mkdirp\n\nIf you need to create a directory recursively, check out\n[mkdirp](https://github.com/substack/node-mkdirp).\n", - "readmeFilename": "README.md", - "bugs": { - "url": "https://github.com/isaacs/rimraf/issues" + "scripts": { + "test": "tap test/*.js" }, - "homepage": "https://github.com/isaacs/rimraf#readme", - "_id": "rimraf@2.4.3", - "_shasum": "e5b51c9437a4c582adb955e9f28cf8d945e272af", - "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.3.tgz", - "_from": "rimraf@>=2.4.3 <2.5.0" + "version": "2.4.4" } diff --git a/package.json b/package.json index b3377b995..ea6bdd058 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "read-package-tree": "~5.1.2", "realize-package-specifier": "~3.0.1", "retry": "~0.8.0", - "rimraf": "~2.4.3", + "rimraf": "~2.4.4", "semver": "~5.0.3", "sha": "~2.0.1", "slide": "~1.1.6", |