{"name":"prepend-file","version":"2.0.1","description":"Prepend data to a file, creating it if it doesn't exist.","repository":{"type":"git","url":"git+https://github.com/hemanth/node-prepend-file.git"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"license":"MIT","main":"index.js","engines":{"node":"^10.17 || >=11.14"},"scripts":{"coverage":"nyc report --reporter=text-lcov | coveralls","test":"xo && nyc ava"},"keywords":["fs","file","prepend"],"dependencies":{"temp-write":"^4.0.0"},"devDependencies":{"ava":"^3.11.0","coveralls":"^3.1.0","nyc":"^15.1.0","xo":"^0.32.1"},"xo":{"space":2},"types":"./index.d.ts","gitHead":"d9c383d14a3e9261bff46576dd5beea8a06df73b","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file#readme","_id":"prepend-file@2.0.1","_nodeVersion":"16.6.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-0hXWjmOpz5YBIk6xujS0lYtCw6IAA0wCR3fw49UGTLc3E9BIhcxgqdMa8rzGvrtt2F8wFiGP42oEpQ8fo9zhRw==","shasum":"6a624b474a65ab1f87dc24d1757d5a6d989eb2db","tarball":"http://registry-npm.ywwl.com/prepend-file/download/prepend-file-2.0.1.tgz","fileCount":5,"unpackedSize":5954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3YfuCRA9TVsSAnZWagAA1o8P/3BYuxEL1vATul4D/FQq\nev6LFaWsfiVlCTDyU3XZp0rmEHbp/GC/I99j4gLWw8N/IMwiWkN+C7/KS9s8\n6a6bIPHyKw6QgSbaytAGP2ooO/yYx6oCpvPlz4Okq/0DCPt7UV7O5OqOf7HN\n+mHwIvmN1xIiVq00YwR1Fu2jIRD5L6EeKrzJHTZD09IBbeBsIbJ9qXuxwf9/\nd5YrZk9ZIMSGtBgvmSuZDG3qZ5+HF1QwnOmgq3ZIAB1hgMpiMgTijpDd7uHH\nUOw+0hTeikl8h2MyrQFTVJ6zTgNWR8/rtronyu0Apl2msbdvJpZUqx2n8ULD\nWyDaoC9uHKKsEeRN/jgP/WPor1VRZzbFUheo/V5mLtibAIEjJH+hLsvmGtYR\n7s8hOJZ+tVqQd/0qKnmvQMK8uYju5KgdK3aXSmW0END+r42G7XWRifZdDq0y\nUQqKn6RjuTf4yXuL1lpAqzOKH8dvIjZ+z93CAkXX9w7WoN3ztQQcnm3wdn6u\ntOg7wxhO9ivTfykvNtHF27dyIfWuuAY3qR8d9yE6cXDFZ0LrSRX+ISr41GuT\nnzD4hFD7tGCX5pQj7Rq8evjPBUr9PkVz6KL3pWS0vNppFyrEi/rBsMRB/BEw\nppfNY2qE2L+q+mFifF2Y7dfZlNZGzhAobJ8QHZQDBF20bpYpANDfQiovx7fs\n/9vM\r\n=TdkV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMduA/+dewMOWbEKzzM95oON45EhBFFYI2wA7yVBwoyAiEA63o/k6wYpPAWt3c4bZSyZdOm+FEU/IwsiGJUI6bs2Is="}],"size":2364,"noattachment":false,"key":"/prepend-file/-/prepend-file-2.0.1.tgz"},"_npmUser":{"name":"richienb","email":"richiebendall@gmail.com"},"directories":{},"maintainers":[{"name":"stevemao","email":"maochenyan@gmail.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-file_2.0.1_1641908206767_0.2064354927900789"},"_hasShrinkwrap":false,"readme":"# prepend-file [![Build Status][travis-image]][travis-url] [![Code Coverage][coveralls-image]][coveralls-url]\r\n\r\n> Prepend data to a file, creating it if it doesn't exist.\r\n\r\n## Install\r\n\r\n```sh\r\nnpm install prepend-file\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nconst prependFile = require('prepend-file');\r\n\r\n(async () => {\r\n  await prependFile('message.txt', 'some data');\r\n});\r\n```\r\n\r\n## API\r\n\r\n### prependFile(filename, data)\r\n\r\n### prependFile.sync(filename, data)\r\n\r\n#### filename\r\n\r\nType: `string`\r\n\r\nThe file to prepend the `data` to.\r\n\r\n#### data\r\n\r\nType: `string | Buffer`\r\n\r\nThe data to prepend.\r\n\r\n[travis-image]: https://travis-ci.org/hemanth/node-prepend-file.svg?branch=master\r\n[travis-url]: https://travis-ci.org/hemanth/node-prepend-file\r\n[coveralls-image]: https://coveralls.io/repos/hemanth/node-prepend-file/badge.svg\r\n[coveralls-url]: https://coveralls.io/r/hemanth/node-prepend-file\r\n","publish_time":1641908206903,"_cnpm_publish_time":1641908206903,"dist-tags":{"latest":"2.0.2"}}