{"_id":"fs.extra","_rev":"214692","name":"fs.extra","description":"fs.move and fs.copy for Node.JS","dist-tags":{"latest":"1.3.2"},"maintainers":[{"name":"coolaj86","email":""}],"time":{"modified":"2021-06-03T15:34:16.000Z","created":"2011-11-10T07:39:10.302Z","1.3.2":"2015-01-15T19:48:15.706Z","1.3.0":"2015-01-09T18:53:03.103Z","1.2.1":"2013-05-29T03:36:29.716Z","1.2.0":"2012-07-26T05:42:05.124Z","1.1.5":"2012-07-13T07:19:38.039Z","1.1.3":"2012-06-03T02:49:07.400Z","1.1.2":"2012-06-02T17:52:23.553Z","1.1.1":"2012-05-23T01:31:05.339Z","1.0.1":"2012-01-04T19:52:37.236Z","1.0.0":"2011-11-10T07:39:10.302Z"},"users":{"fgribreau":true,"sanchiz":true,"yourhoneysky":true,"uniquerockrz":true,"detj":true,"vb078":true,"japh":true,"rdesoky":true,"ahsanshafiq":true,"hr.":true,"colshacol":true,"scottfreecode":true,"sinahwz":true},"author":{"name":"AJ ONeal","email":"awesome@coolaj86@.com","url":"http://coolaj86.com/"},"repository":{"type":"git","url":"git://github.com/coolaj86/utile-fs.git"},"versions":{"1.3.2":{"author":{"name":"AJ ONeal","email":"awesome@coolaj86@.com","url":"http://coolaj86.com/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.3.2","repository":{"type":"git","url":"git://github.com/coolaj86/utile-fs.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"fs-extra":"~0.6.1","mkdirp":"~0.3.5","walk":"^2.3.9"},"devDependencies":{"sequence":"~2.2.1"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"bugs":{"url":"https://github.com/coolaj86/utile-fs/issues"},"homepage":"https://github.com/coolaj86/utile-fs","_id":"fs.extra@1.3.2","_shasum":"dd023f93013bee24531f1b33514c37b20fd93349","_from":".","_npmVersion":"2.1.18","_nodeVersion":"1.0.1","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"dd023f93013bee24531f1b33514c37b20fd93349","size":7664,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.3.2.tgz"},"directories":{},"publish_time":1421351295706,"_cnpm_publish_time":1421351295706,"_hasShrinkwrap":false},"1.3.0":{"author":{"name":"AJ ONeal","email":"awesome@coolaj86@.com","url":"http://coolaj86.com/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.3.0","repository":{"type":"git","url":"git://github.com/coolaj86/utile-fs.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"~0.3.5","fs-extra":"~0.6.1","walk":"~2.2.1"},"devDependencies":{"sequence":"~2.2.1"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"bugs":{"url":"https://github.com/coolaj86/utile-fs/issues"},"homepage":"https://github.com/coolaj86/utile-fs","_id":"fs.extra@1.3.0","_shasum":"18483439c758449cc0735d8326650c2368ee1cd1","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"dist":{"shasum":"18483439c758449cc0735d8326650c2368ee1cd1","size":7637,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.3.0.tgz"},"directories":{},"publish_time":1420829583103,"_cnpm_publish_time":1420829583103,"_hasShrinkwrap":false},"1.2.1":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.2.1","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"~0.3.5","fs-extra":"~0.6.1","walk":"~2.2.1"},"devDependencies":{"sequence":"~2.2.1"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/coolaj86/node-examples-js/issues"},"_id":"fs.extra@1.2.1","dist":{"shasum":"060bf20264f35e39ad247e5e9d2121a2a75a1733","size":7392,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.2.1.tgz"},"_from":"./","_npmVersion":"1.2.21","_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1369798589716,"_hasShrinkwrap":false,"_cnpm_publish_time":1369798589716},"1.2.0":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.2.0","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"0.3.x","fs-extra":"0.1.2","walk":"2.x"},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_id":"fs.extra@1.2.0","dist":{"shasum":"eb152dd5aed557e8fd12194f7b997bfb22589998","size":7463,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.2.0.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1343281325124,"_hasShrinkwrap":false,"_cnpm_publish_time":1343281325124},"1.1.5":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.1.5","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"0.3.x","fs-extra":"0.1.x","walk":"2.x"},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_id":"fs.extra@1.1.5","dist":{"shasum":"b3fcd880f3f1a2c5f1cc643a6ee45aacad246a34","size":2887,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.1.5.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1342163978039,"_hasShrinkwrap":false,"_cnpm_publish_time":1342163978039},"1.1.3":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.1.3","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"0.3.x","fs-extra":"0.1.x","walk":"2.x"},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"fs.extra@1.1.3","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"8ef7824aed5d86e01f1234051d32af849b36b32f","size":2831,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.1.3.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1338691747400,"_hasShrinkwrap":false,"_cnpm_publish_time":1338691747400},"1.1.2":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.1.2","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"0.3.x","fs-extra":"0.0.x","walk":"2.x"},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"fs.extra@1.1.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"9a3f3877ec5678047a2395cb0ed657b4484a148e","size":2833,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.1.2.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1338659543553,"_hasShrinkwrap":false,"_cnpm_publish_time":1338659543553},"1.1.1":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.1.1","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{"mkdirp":"0.3.x","fs-extra":"0.0.x","walk":"2.x"},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"fs.extra@1.1.1","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18","_defaultsLoaded":true,"dist":{"shasum":"233ad75ae60e76baba4559ed0eaf5cf55f6e2627","size":2828,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.1.1.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1337736665339,"_hasShrinkwrap":false,"_cnpm_publish_time":1337736665339},"1.0.1":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.0.1","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":"*"},"dependencies":{},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"fs.extra@1.0.1","_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"4e53ac4078046fc1006da42f6f48e634f7aaa89c","size":1462,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.0.1.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1325706757236,"_hasShrinkwrap":false,"_cnpm_publish_time":1325706757236},"1.0.0":{"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info/"},"name":"fs.extra","description":"fs.move and fs.copy for Node.JS","version":"1.0.0","repository":{"type":"git","url":"git://github.com/coolaj86/node-examples-js.git"},"main":"fs.extra","scripts":{"test":"node test.js"},"engines":{"node":">= 0.2"},"dependencies":{},"devDependencies":{"sequence":"*"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"},{"type":"Apache License, Version 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}],"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"_id":"fs.extra@1.0.0","_engineSupported":true,"_npmVersion":"1.0.101","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"1ba5dcfd6ad1180fbfe45add8c58d431ef0e04bb","size":10240,"noattachment":false,"key":"/fs.extra/-/fs.extra-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs.extra/download/fs.extra-1.0.0.tgz"},"maintainers":[{"name":"coolaj86","email":""}],"directories":{},"publish_time":1320910750302,"_hasShrinkwrap":false,"_cnpm_publish_time":1320910750302}},"readme":"fs.extra\n===\n\nExtra file utilities for node.js\n\n**Includes**\n\n* `copy`\n* `copyRecursive`\n* `mkdirp`\n* `move`\n* `walk`\n* `rmrf`\n\n**Install**\n\n``` bash\nnpm install --save fs.extra\n````\n\n**Usage**\n\n```javascript\n// this will have all of a copy of the normal fs methods as well\nvar fs = require('fs.extra');\n```\n\nfs.copy\n===\n\nCreates an `fs.readStream` and `fs.writeStream` and uses `util.pump` to efficiently copy.\n\n```javascript\nfs.copy('foo.txt', 'bar.txt', { replace: false }, function (err) {\n  if (err) {\n    // i.e. file already exists or can't write to directory\n    throw err;\n  }\n\n  console.log(\"Copied 'foo.txt' to 'bar.txt');\n});\n```\n\nOptions are optional. `replace` defaults to false, but will replace existing files if set to `true`.\n\nfs.copyRecursive\n===\n\nBasically a local `rsync`, uses `fs.copy` to recursively copy files and folders (with correct permissions).\n\n```javascript\nfs.copyRecursive('./foo', './bar', function (err) {\n  if (err) {\n    throw err;\n  }\n\n  console.log(\"Copied './foo' to './bar');\n});\n```\n\nfs.mkdirRecursive\n===\n\nIncluded from <https://github.com/substack/node-mkdirp>\n\n```javascript\n// fs.mkdirp(path, mode=(0777 & (~process.umask())), cb);\n\nfs.mkdirp('/tmp/foo/bar/baz', function (err) {\n  if (err) {\n    console.error(err);\n  } else {\n    console.log('pow!')\n  }\n});\n```\n\nfs.mkdirRecursiveSync\n===\n\nIncluded from <https://github.com/substack/node-mkdirp>\n\n```javascript\n// fs.mkdirpSync(path, mode=(0777 & (~process.umask())));\n\ntry {\n  fs.mkdirpSync('/tmp/foo/bar/baz');\n} catch(e) {\n  throw e;\n}\n```\n\nfs.move\n===\n\nAttempts `fs.rename`, then tries `fs.copy` + `fs.unlink` before failing.\n\n```javascript\nfs.move('foo.txt', 'bar.txt', function (err) {\n  if (err) {\n    throw err;\n  }\n\n  console.log(\"Moved 'foo.txt' to 'bar.txt');\n});\n```\n\nfs.rmRecursive\n===\n\nIncluded from <https://github.com/jprichardson/node-fs-extra>\n\nRecursively deletes a directory (like `rm -rf`)\n\n```javascript\n// fs.rmrf(dir, callback);\n\nfs.rmrf('/choose/me/carefully/', function (err) {\n  if (err) {\n    console.error(err);\n  }\n});\n```\n\nfs.rmRecursiveSync\n===\n\nIncluded from <https://github.com/jprichardson/node-fs-extra>\n\nRecursively deletes a directory (like `rm -rf`)\n\n```javascript\n// fs.rmrfSync(dir);\n\nfs.rmrfSync('/choose/me/carefully/');\n```\n\nfs.walk\n===\n\nSee <https://github.com/coolaj86/node-walk>\n\n```javascript\nvar walker = fs.walk(dir)\n  ;\n\n// file, files, directory, directories\nwalker.on(\"file\", function (root, stat, next) {\n  var filepath = path.join(root, stat.name)\n    ;\n\n  console.log(filepath);\n});\n```\n\nAliases and Backwards Compatibility\n===\n\nFor the sake of backwards compatability, you can call the recursive functions with their names as such\n\n    fs.remove <- fs.rmRecursive <- fs.rmrf\n    fs.removeSync <- fs.rmRecursiveSync <- fs.rmrfSync\n    fs.mkdirRecursive <- fs.mkdirp\n    fs.mkdirRecursiveSync <- fs.mkdirpSync\n\nLicense\n===\n\nCopyright AJ ONeal 2011-2015\n\nThis project is available under the MIT and Apache v2 licenses.\n\n  * http://www.opensource.org/licenses/mit-license.php\n  * http://www.apache.org/licenses/LICENSE-2.0.html\n","_attachments":{},"homepage":"https://github.com/coolaj86/utile-fs","bugs":{"url":"https://github.com/coolaj86/utile-fs/issues"}}