{"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"keywords":["promise","fs","file","file system"],"dist-tags":{"latest":"2.0.2"},"author":{"name":"Kevin Beaty"},"description":"Filesystem methods as promises with fs-extra","readme":"# fs-promise\n\n[![Build Status](https://secure.travis-ci.org/kevinbeaty/fs-promise.svg)](http://travis-ci.org/kevinbeaty/fs-promise)\n\n\n```javascript\nvar fsp = require('fs-promise');\n\nfsp.writeFile('/tmp/hello1.txt', 'hello world')\n  .then(function(){\n    return fsp.readFile('/tmp/hello1.txt', {encoding:'utf8'});\n  })\n  .then(function(contents){});\n```\n\n## Implementation\n\n`fs-promise` is now a thin wrapper on top of [`mz/fs`][4] adding support for async functions from [`fs-extra`][2]. If you do not need the functions from `fs-extra`, consider using `mz` directly.\n\n* Proxies async [`fs`][1] and [`fs-extra`][2] methods exposing them as ES 2015 (ES6) compatible promises.\n* Uses [any-promise][3] to load preferred `Promise` implementation.\n* Directly uses [mz/fs][4] for all `fs` functions.\n* Proxies `walk` from `fs-extra` to resolve Promise as arrays of items.\n* Proxies the following functions from fs-extra using [thenify-all][5]. (Proxies all other functions directly).\n\n```javascript\n[\n  'copy',\n  'emptyDir',\n  'ensureFile',\n  'ensureDir',\n  'ensureLink'\n  'ensureSymlink',\n  'mkdirs',\n  'move',\n  'outputFile',\n  'outputJson',\n  'readJson',\n  'remove',\n  'writeJson'\n]\n```\n\n## Usage\n\nDetects a `Promise` implementation using [`any-promise`][3]. If you have a preferred implementation, or are working in an environment without a global implementation, you must explicitly register a `Promise` implementation and it will be used. See [`any-promise`][3] for details.\n\nTypical installation:\n\n```bash\n$ npm install --save fs-promise\n```\n\nNote that `fs-extra` depends on `graceful-fs`, so you will get the benefits of both libraries.\n\n[1]: https://nodejs.org/api/fs.html\n[2]: https://www.npmjs.org/package/fs-extra\n[3]: https://github.com/kevinbeaty/any-promise\n[4]: https://github.com/normalize/mz\n[5]: https://github.com/thenables/thenify-all\n","repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"users":{"parroit":true,"drkibitz":true,"dr-benton":true,"julien-f":true,"okmogwai":true,"adius":true,"curioussavage":true,"erikvold":true,"richie_south":true,"shanewholloway":true,"fhinkel":true,"siirial":true,"gaboesquivel":true,"mikemimik":true,"dbuggerx":true,"ivan.marquez":true,"denji":true,"pillar0514":true,"derflatulator":true,"sbruchmann":true,"cain.chu":true,"evan-king":true,"rawphp":true,"miroklarin":true,"arttse":true,"antixrist":true,"serge-nikitin":true,"shanemileham":true,"rocket0191":true,"hedge":true},"bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"license":"MIT","versions":{"0.0.1":{"name":"fs-promise","version":"0.0.1","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"promise":"~3.0.0"},"devDependencies":{"mocha":"~1.9.0","mocha-as-promised":"~1.3.0","fs-extra":"~0.6.1"},"_id":"fs-promise@0.0.1","dist":{"shasum":"47194a5d2da9a1788d76cece4f3078621b94f1b4","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.0.2":{"name":"fs-promise","version":"0.0.2","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"promise":"~3.0.0"},"devDependencies":{"mocha":"~1.9.0","mocha-as-promised":"~1.3.0","fs-extra":"~0.6.1"},"_id":"fs-promise@0.0.2","dist":{"shasum":"6a0a7ca6a71eb7118731f6283704917557c7a3bf","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.1.0":{"name":"fs-promise","version":"0.1.0","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"promise":"~4.0.0"},"devDependencies":{"mocha":"~1.9.0","mocha-as-promised":"~1.3.0","fs-extra":"~0.6.1"},"bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise","_id":"fs-promise@0.1.0","dist":{"shasum":"b47353239c6aa99ef1075cb9e47fa66868c282a0","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.2.0":{"name":"fs-promise","version":"0.2.0","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"promise":"~5.0.0"},"devDependencies":{"fs-extra":"~0.8.1","mocha":"~1.18.2"},"bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise","_id":"fs-promise@0.2.0","dist":{"shasum":"85477fa34977d0025f3bd7cfece14747265218ce","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.2.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.3.0":{"name":"fs-promise","version":"0.3.0","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"0.0.1"},"devDependencies":{"mocha":"~2.0.1","fs-extra":"~0.12.0","promise":"~6.0.1","es6-promise":"~2.0.0","rsvp":"~3.0.14","bluebird":"~2.3.10","when":"~3.5.2","q":"~1.0.1","native-promise-only":"~0.7.6-a"},"bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise","_id":"fs-promise@0.3.0","dist":{"shasum":"00783eb51d3cc10796017bc30d3047cd3626b4a1","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.3.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.3.1":{"name":"fs-promise","version":"0.3.1","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"~0.1.0"},"devDependencies":{"mocha":"~2.1.0","fs-extra":"~0.13.0","promise":"~6.0.1","es6-promise":"~2.0.1","rsvp":"~3.0.16","bluebird":"~2.5.3","when":"~3.6.4","q":"~1.1.2","native-promise-only":"~0.7.6-a"},"bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise","_id":"fs-promise@0.3.1","dist":{"shasum":"bf34050368f24d6dc9dfc6688ab5cead8f86842a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.3.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.4.0":{"name":"fs-promise","version":"0.4.0","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"~0.2.0"},"devDependencies":{"mocha":"~2.4.2","fs-extra":"~0.26.5","promise":"~7.1.1","es6-promise":"~3.0.2","rsvp":"~3.1.0","bluebird":"~3.1.5","when":"~3.7.7","q":"~1.4.1","native-promise-only":"~0.8.1"},"gitHead":"f103868fbaa938e4708126e707186c6e81972cc7","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@0.4.0","_shasum":"46dcce6f8d1023cc35c7b88fbf1ec840ac367848","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"46dcce6f8d1023cc35c7b88fbf1ec840ac367848","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.4.0.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.4.1":{"name":"fs-promise","version":"0.4.1","description":"Filesystem methods as promises, with optional fs-extra and fs-graceful dependencies","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"^1.0.0"},"devDependencies":{"mocha":"~2.4.2","fs-extra":"~0.26.5","promise":"~7.1.1","es6-promise":"~3.0.2","rsvp":"~3.1.0","bluebird":"~3.1.5","when":"~3.7.7","q":"~1.4.1","native-promise-only":"~0.8.1"},"gitHead":"94c11367e5381b98d6780ca97f0a137d19d83a1c","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@0.4.1","_shasum":"9d57aed89dbcea0fdb6d4cb9c2044aedd9722efd","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"9d57aed89dbcea0fdb6d4cb9c2044aedd9722efd","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.4.1.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"directories":{}},"0.5.0":{"name":"fs-promise","version":"0.5.0","description":"Filesystem methods as promises with fs-extra","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"^1.0.0","fs-extra":"^0.26.5","mz":"^2.3.1","thenify-all":"^1.6.0"},"devDependencies":{"mocha":"~2.4.2","es6-promise":"~3.0.2","rsvp":"~3.1.0","bluebird":"~3.1.5","when":"~3.7.7","q":"~1.4.1"},"gitHead":"474e49a60c926a25c230bccc27ae57e3f5a73f96","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@0.5.0","_shasum":"4347d6bf624655a7061a4319213c393276ad3ef3","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"4347d6bf624655a7061a4319213c393276ad3ef3","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-0.5.0.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/fs-promise-0.5.0.tgz_1456801363585_0.8884184097405523"},"directories":{}},"1.0.0":{"name":"fs-promise","version":"1.0.0","description":"Filesystem methods as promises with fs-extra","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"^1.0.0","fs-extra":"^1.0.0","mz":"^2.3.1","thenify-all":"^1.6.0"},"devDependencies":{"mocha":"^3.0.0","es6-promise":"^4.0.0","rsvp":"^3.0.0","bluebird":"^3.0.0","when":"^3.0.0","q":"^1.0.0"},"gitHead":"a4465893a4ace58f1e8f9958706ac10df97d8953","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@1.0.0","_shasum":"4246a4cd45497d2ed57e6e4b22167d3864b23679","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"4246a4cd45497d2ed57e6e4b22167d3864b23679","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-1.0.0.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-promise-1.0.0.tgz_1478744237594_0.8319747128989547"},"directories":{}},"2.0.0":{"name":"fs-promise","version":"2.0.0","description":"Filesystem methods as promises with fs-extra","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"@types/fs-extra":"0.0.37","@types/mz":"0.0.30","any-promise":"^1.3.0","fs-extra":"^2.0.0","mz":"^2.6.0","thenify-all":"^1.6.0"},"devDependencies":{"mocha":"^3.0.0","es6-promise":"^4.0.0","rsvp":"^3.0.0","bluebird":"^3.0.0","when":"^3.0.0","q":"^1.0.0"},"gitHead":"b327d358976e92ddf82608de0489e342968bd068","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@2.0.0","_shasum":"d1c8bae6ab2bc2ea0cfad643d5fb1c07814d22b3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"d1c8bae6ab2bc2ea0cfad643d5fb1c07814d22b3","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-2.0.0.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-promise-2.0.0.tgz_1486909945724_0.701403935207054"},"directories":{}},"2.0.1":{"name":"fs-promise","version":"2.0.1","description":"Filesystem methods as promises with fs-extra","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"^1.3.0","fs-extra":"^2.0.0","mz":"^2.6.0","thenify-all":"^1.6.0"},"devDependencies":{"@types/fs-extra":"0.0.37","@types/mz":"0.0.30","mocha":"^3.0.0","es6-promise":"^4.0.0","rsvp":"^3.0.0","bluebird":"^3.0.0","when":"^3.0.0","q":"^1.0.0"},"gitHead":"3f5372806ec738132ea3a65c2513d98778f64723","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@2.0.1","_shasum":"e0872f4e6ce0391cc1a3a06af0611dde115efb36","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"e0872f4e6ce0391cc1a3a06af0611dde115efb36","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-2.0.1.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-promise-2.0.1.tgz_1490300968589_0.7336001135408878"},"directories":{}},"2.0.2":{"name":"fs-promise","version":"2.0.2","description":"Filesystem methods as promises with fs-extra","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kevinbeaty/fs-promise.git"},"keywords":["promise","fs","file","file system"],"author":{"name":"Kevin Beaty"},"license":"MIT","dependencies":{"any-promise":"^1.3.0","fs-extra":"^2.0.0","mz":"^2.6.0","thenify-all":"^1.6.0"},"devDependencies":{"@types/fs-extra":"0.0.37","@types/mz":"0.0.30","mocha":"^3.0.0","es6-promise":"^4.0.0","rsvp":"^3.0.0","bluebird":"^3.0.0","when":"^3.0.0","q":"^1.0.0"},"gitHead":"7bc0779243defc93cc4b0921d330ba3d5af79519","bugs":{"url":"https://github.com/kevinbeaty/fs-promise/issues"},"homepage":"https://github.com/kevinbeaty/fs-promise#readme","_id":"fs-promise@2.0.2","_shasum":"cfea45c80f46480a3fd176213fa22abc8c159521","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"kevinbeaty","email":"kevin@simplectic.com"},"dist":{"shasum":"cfea45c80f46480a3fd176213fa22abc8c159521","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/fs-promise/-/fs-promise-2.0.2.tgz"},"maintainers":[{"name":"kevinbeaty","email":"kevin@simplectic.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fs-promise-2.0.2.tgz_1490536198213_0.6396285458467901"},"directories":{}}},"name":"fs-promise","time":{"modified":"2017-03-27T20:38:02.048Z","created":"2013-05-23T01:22:13.513Z","0.0.1":"2013-05-23T01:22:14.788Z","0.0.2":"2013-05-25T12:39:49.841Z","0.1.0":"2014-03-31T22:47:51.677Z","0.2.0":"2014-04-29T23:01:29.489Z","0.3.0":"2014-11-06T02:03:33.257Z","0.3.1":"2014-12-31T18:01:28.445Z","0.4.0":"2016-01-29T23:56:12.301Z","0.4.1":"2016-01-31T20:05:59.338Z","0.5.0":"2016-03-01T03:02:45.526Z","1.0.0":"2016-11-10T02:17:19.518Z","2.0.0":"2017-02-12T14:32:25.956Z","2.0.1":"2017-03-23T20:29:29.232Z","2.0.2":"2017-03-26T13:49:58.768Z"},"readmeFilename":"README.md","homepage":"https://github.com/kevinbeaty/fs-promise#readme"}