{"versions":{"3.0.2":{"version":"3.0.2","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/node-fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/node-fs-writefile-promise.git"},"license":"MIT","main":"index.js","keywords":["node","fs","writefile","promise"],"engines":{"node":">=6"},"bugs":{"url":"https://github.com/ahmadnassri/node-fs-writefile-promise/issues"},"scripts":{"lint:deps":"npx updated","lint:ec":"npx editorconfig-checker .","lint:js":"npx eslint .","lint:md":"npx remark --quiet --frail .","lint":"npx run-p lint:*","open:coverage":"opener coverage/lcov-report/index.html","test":"tap test --100 --coverage-report=lcov --no-browser"},"devDependencies":{"mkdirp":"^0.5.1","mkdirp-promise":"^5.0.1","rimraf":"^2.6.2","tap":"^12.0.1"},"gitHead":"465aa0d8f1cdc15aa40ed84653f1ca7226b0ba9e","_id":"fs-writefile-promise@3.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"dist":{"shasum":"43635986d87bf83d8a33d71570833fbfa68434b4","size":2160,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-3.0.2.tgz","integrity":"sha512-j8HMTdlHUWaMGteIcl6Vg+zzuBl2H+Rbl7SN5bhROO99oIJNlUjdomdGqdMmQ9gzliEDUBlojJVgnKjVgvHF2g=="},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-writefile-promise_3.0.2_1550467222697_0.016921221687814292"},"_hasShrinkwrap":false,"publish_time":1550467222835,"_cnpm_publish_time":1550467222835,"_cnpmcore_publish_time":"2021-12-16T20:46:48.355Z","contributors":[]},"3.0.1":{"version":"3.0.1","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/node-fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/node-fs-writefile-promise.git"},"license":"MIT","main":"index.js","keywords":["node","fs","writefile","promise"],"engines":{"node":">=6"},"bugs":{"url":"https://github.com/ahmadnassri/node-fs-writefile-promise/issues"},"scripts":{"lint:deps":"npx updated","lint:ec":"npx editorconfig-checker .","lint:js":"npx eslint .","lint:md":"npx remark --quiet --frail .","lint":"npx run-p lint:*","open:coverage":"opener coverage/lcov-report/index.html","test":"tap test --100 --coverage-report=lcov --no-browser"},"devDependencies":{"mkdirp":"^0.5.1","mkdirp-promise":"^5.0.1","rimraf":"^2.6.2","tap":"^12.0.1"},"gitHead":"ec2185df329160638eae06d591fbd46caffe3e1b","_id":"fs-writefile-promise@3.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"dist":{"shasum":"dd569a8e34dc83af6803284ec2ab98403da13c2f","size":2177,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-3.0.1.tgz","integrity":"sha512-URpPfFB3biVuPbxAyHY5YZddc0ft6JThhe9eOw4ZwYM94d/2VNOF2Y34RFi9M589ZWcz/nPfLaSWj/Ncf0XXIw=="},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-writefile-promise_3.0.1_1541533708204_0.9198670703162817"},"_hasShrinkwrap":false,"publish_time":1541533708311,"_cnpm_publish_time":1541533708311,"_cnpmcore_publish_time":"2021-12-16T20:46:48.582Z","contributors":[]},"3.0.0":{"version":"3.0.0","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/node-fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/node-fs-writefile-promise.git"},"license":"ISC","main":"index.js","keywords":["fs-writefile","promise"],"engines":{"node":">=6"},"files":["index.js"],"bugs":{"url":"https://github.com/ahmadnassri/node-fs-writefile-promise/issues"},"scripts":{"pretest":"npm run test:codeclimate","test":"npm run test:tap","test:codeclimate":".scripts/codeclimate analyze","test:tap":"tap test --100 --coverage-report=lcov --no-browser","coverage":"opener coverage/lcov-report/index.html"},"devDependencies":{"mkdirp":"^0.5.1","mkdirp-promise":"^4.0.1","rimraf":"^2.5.4","tap":"^8.0.1"},"dependencies":{},"gitHead":"2e7e71ed2c3a0bf67f3e6e9ab82a686a03f7102c","_id":"fs-writefile-promise@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"dist":{"shasum":"0046ebd45381c726f31557760878333b2858ad3a","size":2030,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-3.0.0.tgz","integrity":"sha512-TZfCOpJJ4+Ul2/0CUQCxoCERZnyK1fy6/Rf2rqpS9HG88a23k3Mne+gYO39LBq0lrjOvVayG0l5F9vXPq4hvdw=="},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-writefile-promise_3.0.0_1521378387027_0.8898832891084487"},"_hasShrinkwrap":false,"publish_time":1521378387070,"_cnpm_publish_time":1521378387070,"_cnpmcore_publish_time":"2021-12-16T20:46:48.756Z","contributors":[]},"2.0.0":{"version":"2.0.0","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/fs-writefile-promise.git"},"license":"ISC","main":"lib/index.js","keywords":["fs-writefile","promise"],"engines":{"node":">=4"},"files":["lib","src"],"bugs":{"url":"https://github.com/ahmadnassri/fs-writefile-promise/issues"},"scripts":{"compile":"babel -q src","test":"BABEL_ENV=test tap test/*.js --reporter spec --node-arg=--require --node-arg=babel-register","pretest":"snazzy && echint","coverage":"BABEL_ENV=test tap test/*.js --coverage --nyc-arg=--require --nyc-arg=babel-register","codeclimate":"nyc report --reporter=text-lcov | codeclimate-test-reporter","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"standard":{"ignore":["lib/**"]},"echint":{"ignore":["lib/**"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"devDependencies":{"babel-cli":"^6.18.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"0.0.8","babel-register":"^6.18.0","codeclimate-test-reporter":"^0.4.0","cz-conventional-changelog":"^1.2.0","echint":"^1.5.3","rimraf":"^2.5.4","semantic-release":"^6.3.2","snazzy":"^5.0.0","tap":"^8.0.1"},"dependencies":{"mkdirp-promise":"^4.0.1"},"gitHead":"df068e7bff490623ce2b7670e33f7188b6bfb536","_id":"fs-writefile-promise@2.0.0","_shasum":"14f9461fb5ffc148a339f50d2eeac578b41285bc","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"dist":{"shasum":"14f9461fb5ffc148a339f50d2eeac578b41285bc","size":2835,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-2.0.0.tgz","integrity":"sha512-q5amfHPvpMydbeIAggvm44AE339VGKTxORTVT6u1uvtSKBaNAeSj2Z+y8txsfpaWKNxC4W+qZqjunGJg14yEYQ=="},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/fs-writefile-promise-2.0.0.tgz_1479596581050_0.4225270221941173"},"directories":{},"publish_time":1479596583214,"_hasShrinkwrap":false,"_cnpm_publish_time":1479596583214,"_cnpmcore_publish_time":"2021-12-16T20:46:48.965Z","contributors":[]},"1.0.3":{"version":"1.0.3","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/fs-writefile-promise","repository":{"type":"git","url":"https://github.com/ahmadnassri/fs-writefile-promise"},"license":"ISC","main":"lib/index","keywords":["fs-writefile","promise"],"engines":{"node":">=0.10"},"files":["lib"],"bugs":{"url":"https://github.com/ahmadnassri/fs-writefile-promise/issues"},"scripts":{"pretest":"standard && echint --verbose","test":"mocha","posttest":"npm run coverage","coverage":"istanbul cover --dir coverage _mocha -- -R dot","codeclimate":"codeclimate-test-reporter < coverage/lcov.info"},"echint":{"ignore":["coverage/**"]},"devDependencies":{"codeclimate-test-reporter":"0.1.0","del":"^1.2.0","echint":"^1.2.0","istanbul":"^0.3.15","mocha":"^2.2.5","rimraf":"^2.4.0","should":"^7.0.1","standard":"^5.1.0"},"dependencies":{"mkdirp-promise":"^1.0.0","pinkie-promise":"^1.0.0"},"gitHead":"7452bef1ac5c75fcb913c08611348f1b1e624db3","_id":"fs-writefile-promise@1.0.3","_shasum":"e02f9b58ffc255ed822adc7a01114f445d48d063","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"dist":{"shasum":"e02f9b58ffc255ed822adc7a01114f445d48d063","size":2121,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-1.0.3.tgz","integrity":"sha512-yI+wDwj0FsgX7tyIQJR+EP60R64evMSixtGb9AzGWjJVKlF5tCet95KomfqGBg/aIAG1Dhd6wjCOQe5HbX/qLA=="},"directories":{},"publish_time":1439868554394,"_hasShrinkwrap":false,"_cnpm_publish_time":1439868554394,"_cnpmcore_publish_time":"2021-12-16T20:46:49.216Z","contributors":[]},"1.0.2":{"version":"1.0.2","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/fs-writefile-promise","repository":{"type":"git","url":"https://github.com/ahmadnassri/fs-writefile-promise"},"license":"ISC","main":"lib/index","keywords":["fs-writefile","promise"],"engines":{"node":">=0.10"},"files":["lib"],"bugs":{"url":"https://github.com/ahmadnassri/fs-writefile-promise/issues"},"scripts":{"pretest":"standard && echint --verbose","test":"mocha","posttest":"npm run coverage","coverage":"istanbul cover --dir coverage _mocha -- -R dot","codeclimate":"codeclimate-test-reporter < coverage/lcov.info"},"echint":{"ignore":["coverage/**"]},"devDependencies":{"codeclimate-test-reporter":"0.1.0","del":"^1.2.0","echint":"^1.2.0","fs-readfile-promise":"^2.0.0","istanbul":"^0.3.15","mocha":"^2.2.5","rimraf":"^2.4.0","should":"^7.0.1","standard":"^5.1.0"},"dependencies":{"mkdirp-promise":"^1.0.0","pinkie-promise":"^1.0.0"},"gitHead":"6778d90f0ae7a6d2ae16cf6c1b31d519b11d5482","_id":"fs-writefile-promise@1.0.2","_shasum":"57b387adb4f6588b675c058784ea7e693756776c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"dist":{"shasum":"57b387adb4f6588b675c058784ea7e693756776c","size":2131,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-1.0.2.tgz","integrity":"sha512-B9fFi4CpirJKJkVnHUc16HkDWUm702jWJBgloUfFyvQQ/uXL9+tzQYnLsd7AIOhe5wC7Q9sU2XDT3xbC9lfbXA=="},"directories":{},"publish_time":1439863946570,"_hasShrinkwrap":false,"_cnpm_publish_time":1439863946570,"_cnpmcore_publish_time":"2021-12-16T20:46:49.406Z","contributors":[]},"1.0.1":{"version":"1.0.1","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/fs-writefile-promise.git"},"license":"ISC","main":"lib/index","keywords":["fs-writefile","promise"],"engines":{"node":">=0.12"},"files":["lib"],"bugs":{"url":"https://github.com/ahmadnassri/fs-writefile-promise/issues"},"scripts":{"pretest":"standard && echint","test":"mocha","posttest":"npm run coverage","coverage":"istanbul cover --dir coverage _mocha -- -R dot","codeclimate":"codeclimate < coverage/lcov.info"},"echint":{"ignore":["coverage/**"]},"devDependencies":{"codeclimate-test-reporter":"0.0.4","del":"^1.2.0","echint":"^1.2.0","fs-readfile-promise":"^2.0.0","istanbul":"^0.3.15","mocha":"^2.2.5","rimraf":"^2.4.0","should":"^7.0.1","standard":"^4.3.1"},"dependencies":{"mkdirp-promise":"^1.0.0"},"gitHead":"79e51623637d5d0c934d352193609bb73219cb1e","_id":"fs-writefile-promise@1.0.1","_shasum":"fadfb6780989df65f5cc6784406837488c9d1530","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"dist":{"shasum":"fadfb6780989df65f5cc6784406837488c9d1530","size":2113,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-1.0.1.tgz","integrity":"sha512-xd5l4ZjB7ENRCFaeqJul3zL8wGie9j3bEN3OZwwHCc7ZmkV9X6GTyg060q9R/JYg4iWkS206SGHrAsvkOMP2zg=="},"directories":{},"publish_time":1434914462955,"_hasShrinkwrap":false,"_cnpm_publish_time":1434914462955,"_cnpmcore_publish_time":"2021-12-16T20:46:49.766Z","contributors":[]},"1.0.0":{"version":"1.0.0","name":"fs-writefile-promise","description":"Promise version of fs.writefile","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/fs-writefile-promise","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/fs-writefile-promise.git"},"license":"ISC","main":"lib/index","keywords":["fs-writefile","promise"],"engines":{"node":">=0.12"},"files":["lib"],"bugs":{"url":"https://github.com/ahmadnassri/fs-writefile-promise/issues"},"scripts":{"pretest":"standard && echint","test":"mocha","posttest":"npm run coverage","coverage":"istanbul cover --dir coverage _mocha -- -R dot","codeclimate":"codeclimate < coverage/lcov.info"},"echint":{"ignore":["coverage/**"]},"devDependencies":{"codeclimate-test-reporter":"0.0.4","del":"^1.2.0","echint":"^1.2.0","fs-readfile-promise":"^2.0.0","istanbul":"^0.3.15","mocha":"^2.2.5","rimraf":"^2.4.0","should":"^7.0.1","standard":"^4.3.1"},"dependencies":{"mkdirp-promise":"^1.0.0"},"gitHead":"8b9a2cbafeceedcace6adb7d8d125cf5c2644651","_id":"fs-writefile-promise@1.0.0","_shasum":"b3c669fc133ee5fcea17d599b36ca169207f59cc","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"ahmad@ahmadnassri.com"},"maintainers":[{"name":"anonymous","email":"ahmad@ahmadnassri.com"}],"dist":{"shasum":"b3c669fc133ee5fcea17d599b36ca169207f59cc","size":2109,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fs-writefile-promise/-/fs-writefile-promise-1.0.0.tgz","integrity":"sha512-00+vPN8W+rS0shd/v3sw8II0FfbZ5e3hhAIf2sobPN+fjX0PDMZHAyuJ66sh30ViDJC19XTwr+szI2qjcppRFw=="},"directories":{},"publish_time":1434914314847,"_hasShrinkwrap":false,"_cnpm_publish_time":1434914314847,"_cnpmcore_publish_time":"2021-12-16T20:46:50.119Z","contributors":[]}},"dist-tags":{"latest":"3.0.2"},"name":"fs-writefile-promise","time":{"created":"2022-01-26T19:48:47.836Z","modified":"2023-08-08T17:49:33.270Z","3.0.2":"2019-02-18T05:20:22.835Z","3.0.1":"2018-11-06T19:48:28.311Z","3.0.0":"2018-03-18T13:06:27.070Z","2.0.0":"2016-11-19T23:03:03.214Z","1.0.3":"2015-08-18T03:29:14.394Z","1.0.2":"2015-08-18T02:12:26.570Z","1.0.1":"2015-06-21T19:21:02.955Z","1.0.0":"2015-06-21T19:18:34.847Z"},"readme":"# fs.writeFile Promise\n\n[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-url]\n\n> [Promise][] version of [fs.writeFile][]:  \n> Asynchronously writes data to a file, replacing the file if it already exists.\n\n## Install\n\n```bash\nnpm install fs-writefile-promise\n```\n\n## API\n\n<!-- lint disable no-shortcut-reference-link -->\n### write(filename, data [, options])\n<!-- lint enable no-shortcut-reference-link -->\n\n- _filename_: `String`\n- _data_ `String` or `Buffer`\n- _options_: `Object`\n\nReturn: `Object` ([Promise][])\n\nWhen it finishes, it will be [_fulfilled_](http://promisesaplus.com/#point-26) with the file name that was written to.\n\nWhen it fails, it will be [_rejected_](http://promisesaplus.com/#point-30) with an error as its first argument.\n\n```js\nwrite('/tmp/foo', 'bar')\n  .then(filename => console.log(filename)) //=> '/tmp/foo'\n  .catch(err => console.error(err))\n```\n\n#### options\n\nThe option object will be directly passed to [fs.writeFile][].\n\n---\n> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) &bull; \n> Github: [@ahmadnassri](https://github.com/ahmadnassri) &bull; \n> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)\n\n[license-url]: LICENSE\n[license-image]: https://img.shields.io/github/license/ahmadnassri/node-fs-writefile-promise.svg?style=for-the-badge&logo=circleci\n\n[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/node-fs-writefile-promise\n[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-fs-writefile-promise/master.svg?style=for-the-badge&logo=circleci\n\n[npm-url]: https://www.npmjs.com/package/fs-writefile-promise\n[npm-image]: https://img.shields.io/npm/v/fs-writefile-promise.svg?style=for-the-badge&logo=npm\n\n[fs.writefile]: https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback\n[promise]: http://promisesaplus.com/","users":{}}