{"xo":{"space":2},"_id":"prepend-file@2.0.2","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"dist":{"shasum":"f900e30bf1c52024fda6082ed493eb0abf9720ad","tarball":"http://registry-npm.ywwl.com/prepend-file/download/prepend-file-2.0.2.tgz","integrity":"sha512-qpEUco9DYAmjxWoWgv8PY1zBW7RmE6P+8FoBFDq/VeWV6PA6gblFzWUnX+25FjFs8dCTf0NT6CSjneRfQmJehg==","fileCount":5,"unpackedSize":5719,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCXGB7ZBwMzvxFXuFSIUAXtG8QaVZrwEmWm2a4lOAIiigIgJNnmHVSlMOpaaFahhaLZHcbN9mUod8vn8aLI6zP6Yv4="}],"size":2351,"noattachment":false,"key":"/prepend-file/-/prepend-file-2.0.2.tgz"},"main":"index.js","name":"prepend-file","types":"./index.d.ts","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":"^10.17 || >=11.14"},"gitHead":"42693f0661ac86dd1292a955c9f4d9229884b3ad","license":"MIT","scripts":{"test":"ava","coverage":"nyc report --reporter=text-lcov | coveralls"},"version":"2.0.2","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com","approver":{"name":"hemanth","email":"hemanth.hm@gmail.com"}},"homepage":"https://github.com/hemanth/node-prepend-file#readme","keywords":["fs","file","prepend"],"repository":{"url":"git+https://github.com/hemanth/node-prepend-file.git","type":"git"},"_npmVersion":"11.19.0","description":"Prepend data to a file, creating it if it doesn't exist.","directories":{},"maintainers":[{"name":"stevemao","email":"maochenyan@gmail.com"},{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"}],"_nodeVersion":"26.8.1","dependencies":{"temp-write":"^6.0.1"},"devDependencies":{"ava":"^3.11.0","nyc":"^15.1.0","coveralls":"^3.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prepend-file_2.0.2_1791245351837_0.65163418222174"},"_hasShrinkwrap":false,"readme":"# prepend-file [![Build Status][travis-image]][travis-url] [![Code Coverage][coveralls-image]][coveralls-url]\n\n> Prepend data to a file, creating it if it doesn't exist.\n\n## Install\n\n```sh\nnpm install prepend-file\n```\n\n## Usage\n\n```js\nconst prependFile = require('prepend-file');\n\n(async () => {\n  await prependFile('message.txt', 'some data');\n});\n```\n\n## API\n\n### prependFile(filename, data)\n\n### prependFile.sync(filename, data)\n\n#### filename\n\nType: `string`\n\nThe file to prepend the `data` to.\n\n#### data\n\nType: `string | Buffer`\n\nThe data to prepend.\n\n[travis-image]: https://travis-ci.org/hemanth/node-prepend-file.svg?branch=master\n[travis-url]: https://travis-ci.org/hemanth/node-prepend-file\n[coveralls-image]: https://coveralls.io/repos/hemanth/node-prepend-file/badge.svg\n[coveralls-url]: https://coveralls.io/r/hemanth/node-prepend-file\n","publish_time":1791245351943,"_cnpm_publish_time":1791245351943,"dist-tags":{"latest":"2.0.2"}}