{"_id":"fs-then-native","_rev":"334994","name":"fs-then-native","description":"Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-08T13:15:53.000Z","created":"2016-10-05T21:48:21.237Z","2.0.0":"2017-02-08T20:47:27.248Z","1.0.2":"2016-10-09T21:01:41.742Z","1.0.1":"2016-10-09T20:44:28.871Z","1.0.0":"2016-10-09T19:39:40.259Z","0.1.2":"2016-10-09T19:16:03.353Z","0.1.1":"2016-10-07T09:24:12.069Z","0.1.0":"2016-10-05T21:48:21.237Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"versions":{"2.0.0":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.0","description":"Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"lib/fs-then-native","keywords":["fs","then","promise","native","promises","readFile","writeFile"],"engines":{"node":">=4.0.0"},"scripts":{"test":"test-runner test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/test-runner test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"devDependencies":{"coveralls":"^2.11.16","rimraf":"^2.5.4","test-runner":"^0.3.0"},"gitHead":"c35f453fcf6775b7fda0d752f16cee8a34216f63","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@2.0.0","_shasum":"19a124d94d90c22c8e045f2e8dd6ebea36d48c67","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"19a124d94d90c22c8e045f2e8dd6ebea36d48c67","size":2887,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-2.0.0.tgz_1486586845292_0.9224253178108484"},"directories":{},"publish_time":1486586847248,"_cnpm_publish_time":1486586847248,"_hasShrinkwrap":false},"1.0.2":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","description":"Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs src/lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5","cover":"istanbul cover ./node_modules/.bin/test-runner src/test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","coveralls":"^2.11.14","rimraf":"^2.5.4","test-runner":"^0.2.5"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"d5c42d139468f90bf2afa6e57d9516b8dd4e6068","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@1.0.2","_shasum":"ac8d3807c9f1bbd1279607fb228e0ab649bb41fe","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"ac8d3807c9f1bbd1279607fb228e0ab649bb41fe","size":3641,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-1.0.2.tgz_1476046899789_0.6698561545927078"},"directories":{},"publish_time":1476046901742,"_cnpm_publish_time":1476046901742,"_hasShrinkwrap":false},"1.0.1":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs src/lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5","cover":"istanbul cover ./node_modules/.bin/test-runner src/test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","coveralls":"^2.11.14","rimraf":"^2.5.4","test-runner":"^0.2.5"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"bfcd585fc07e8fb4e9b5b5f6679ff4169f134efa","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@1.0.1","_shasum":"148ba983bcb9c268057431d1baeeb1a1529555eb","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"148ba983bcb9c268057431d1baeeb1a1529555eb","size":3508,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-1.0.1.tgz_1476045866990_0.029752834234386683"},"directories":{},"publish_time":1476045868871,"_cnpm_publish_time":1476045868871,"_hasShrinkwrap":false},"1.0.0":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Wraps the Node.js fs library with a Promise API using whichever `Promise` implementation is available","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs src/lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5","cover":"istanbul cover ./node_modules/.bin/test-runner src/test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","coveralls":"^2.11.14","rimraf":"^2.5.4","test-runner":"^0.2.4"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"8cf377f60e2f262fb232a2e31fe808c6ea2435b6","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@1.0.0","_shasum":"ba0be08afd394cd97cc7e1f2998c5f0a6689ad00","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"ba0be08afd394cd97cc7e1f2998c5f0a6689ad00","size":3395,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-1.0.0.tgz_1476041978576_0.6764148978982121"},"directories":{},"publish_time":1476041980259,"_cnpm_publish_time":1476041980259,"_hasShrinkwrap":false},"0.1.2":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.2","description":"fs-then-native","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs src/lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","rimraf":"^2.5.4","test-runner":"^0.2.4"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"b9b02a981145a46e68326532e35be15f78cac772","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@0.1.2","_shasum":"4152e35452b0ca3a795d1448d6edd33f73d4175b","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"4152e35452b0ca3a795d1448d6edd33f73d4175b","size":3114,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-0.1.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-0.1.2.tgz_1476040561350_0.4345008754171431"},"directories":{},"publish_time":1476040563353,"_cnpm_publish_time":1476040563353,"_hasShrinkwrap":false},"0.1.1":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"fs-then-native","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","rimraf":"^2.5.4","test-runner":"^0.2.4"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"298ab39016e9bf04c382a8361a713092f9f6db9e","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@0.1.1","_shasum":"9b8b4ef4c705ac650cd2c298f0bd297175953422","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"9b8b4ef4c705ac650cd2c298f0bd297175953422","size":2715,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-0.1.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-0.1.1.tgz_1475832250319_0.30147419520653784"},"directories":{},"publish_time":1475832252069,"_cnpm_publish_time":1475832252069,"_hasShrinkwrap":false},"0.1.0":{"name":"fs-then-native","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"fs-then-native","repository":{"type":"git","url":"git+https://github.com/75lb/fs-then-native.git"},"license":"MIT","main":"main.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","es5":"rm -rf es5 && babel --presets babel-preset-es2015 --no-comments src --out-dir es5"},"devDependencies":{"babel-preset-es2015":"^6.16.0","core-assert":"^0.2.1","rimraf":"^2.5.4","test-runner":"^0.2.4"},"dependencies":{"feature-detect-es6":"^1.3.1"},"gitHead":"b85115c84b559df10ae7e489cfc38ecd7024beae","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"homepage":"https://github.com/75lb/fs-then-native#readme","_id":"fs-then-native@0.1.0","_shasum":"9c2c3dd1ed3b3579da0a9f9df9cb6207f34c3e24","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"9c2c3dd1ed3b3579da0a9f9df9cb6207f34c3e24","size":2708,"noattachment":false,"key":"/fs-then-native/-/fs-then-native-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fs-then-native/download/fs-then-native-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-then-native-0.1.0.tgz_1475704099648_0.047292621806263924"},"directories":{},"publish_time":1475704101237,"_cnpm_publish_time":1475704101237,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/fs-then-native.svg)](https://www.npmjs.org/package/fs-then-native)\n[![npm module downloads](http://img.shields.io/npm/dt/fs-then-native.svg)](https://www.npmjs.org/package/fs-then-native)\n[![Build Status](https://travis-ci.org/75lb/fs-then-native.svg?branch=master)](https://travis-ci.org/75lb/fs-then-native)\n[![Coverage Status](https://coveralls.io/repos/github/75lb/fs-then-native/badge.svg?branch=master)](https://coveralls.io/github/75lb/fs-then-native?branch=master)\n[![Dependency Status](https://david-dm.org/75lb/fs-then-native.svg)](https://david-dm.org/75lb/fs-then-native)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# fs-then-native\n\nA minimal wrapper around the [Node.js fs library](https://nodejs.org/dist/latest-v6.x/docs/api/fs.html) adding a Promise API. It uses whichever `Promise` implementation is available, leaving responsibility one exists to the user.\n\n## Synopsis\n\n```js\nfs.readFile('file.txt', 'utf8')\n  .then(content => {\n    // process file content\n  })\n  .catch(err => {\n    // handle exception\n  })\n```\n\n* * *\n\n&copy; 2016-17 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/fs-then-native#readme","bugs":{"url":"https://github.com/75lb/fs-then-native/issues"},"license":"MIT"}