{"_id":"prepend-file","_rev":"4618871","name":"prepend-file","description":"Prepend data to a file, creating it if it doesn't exist.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"time":{"modified":"2026-04-10T18:18:47.000Z","created":"2014-06-20T13:52:26.305Z","2.0.1":"2022-01-11T13:36:46.903Z","2.0.0":"2020-08-01T14:32:15.089Z","1.3.1":"2016-11-26T02:34:21.440Z","1.3.0":"2015-05-08T06:17:38.391Z","1.2.1":"2015-05-04T09:12:50.234Z","1.2.0":"2015-05-04T09:05:53.704Z","1.1.0":"2015-04-07T12:11:01.404Z","1.0.0":"2015-04-07T02:38:40.953Z","0.2.0":"2014-11-22T13:05:38.122Z","0.1.2":"2014-06-21T16:07:43.625Z","0.1.1":"2014-06-20T14:31:17.761Z","0.1.0":"2014-06-20T13:52:26.305Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/node-prepend-file.git"},"versions":{"2.0.1":{"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":{"shasum":"6a624b474a65ab1f87dc24d1757d5a6d989eb2db","size":2364,"noattachment":false,"key":"/prepend-file/-/prepend-file-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-2.0.1.tgz"},"_npmUser":{"name":"richienb","email":"richiebendall@gmail.com"},"directories":{},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-file_2.0.1_1641908206767_0.2064354927900789"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-11T13:36:55.886Z","publish_time":1641908206903,"_cnpm_publish_time":1641908206903},"2.0.0":{"name":"prepend-file","version":"2.0.0","description":"Prepend data to a file, creating it if it doesn't exist.","repository":{"type":"git","url":"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 || >=11.14"},"scripts":{"coverage":"nyc report --reporter=text-lcov | coveralls","test":"xo && nyc ava"},"keywords":["fs","file","prepend"],"dependencies":{"path-exists":"^4.0.0","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},"licenseText":"The MIT License (MIT)\n\nCopyright (c) Hemanth.HM <hemanth.hm@gmail.com> (h3manth.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"prepend-file@2.0.0","dist":{"shasum":"2d3256376a64ca3b5640153890a89cadbebaf1a9","size":2386,"noattachment":false,"key":"/prepend-file/-/prepend-file-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-2.0.0.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"_npmUser":{"name":"richienb","email":"richiebendall@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prepend-file_2.0.0_1596292334943_0.04960092483710543"},"_hasShrinkwrap":false,"publish_time":1596292335089,"_cnpm_publish_time":1596292335089,"_cnpmcore_publish_time":"2021-12-16T19:14:50.157Z"},"1.3.1":{"name":"prepend-file","version":"1.3.1","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","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"},"engines":{"node":">=0.10.0"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec && rm -rf ./coverage","lint":"jshint *.js --exclude node_modules && jscs *.js","test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.13","jscs":"^1.13.1","jshint":"^2.6.3","mocha":"*"},"dependencies":{"tmp":"0.0.31"},"gitHead":"503e60a34dbf62ede349354471f6fa5b6f04eddf","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file#readme","_id":"prepend-file@1.3.1","_shasum":"83b16e0b4ac1901fce88dbd945a22f4cc81df579","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"stevemao","email":"maochenyan@gmail.com"},"dist":{"shasum":"83b16e0b4ac1901fce88dbd945a22f4cc81df579","size":2810,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.3.1.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/prepend-file-1.3.1.tgz_1480127659305_0.8054598094895482"},"directories":{},"publish_time":1480127661440,"_hasShrinkwrap":false,"_cnpm_publish_time":1480127661440,"_cnpmcore_publish_time":"2021-12-16T19:14:50.364Z"},"1.3.0":{"name":"prepend-file","version":"1.3.0","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","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"},"engines":{"node":">=0.10.0"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec && rm -rf ./coverage","lint":"jshint *.js --exclude node_modules && jscs *.js","test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.13","jscs":"^1.13.1","jshint":"^2.6.3","mocha":"*"},"dependencies":{"tempfile":"^1.1.1"},"gitHead":"d35d6889c962b989bbea299162d7c82c1055727c","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file#readme","_id":"prepend-file@1.3.0","_shasum":"d46cf79fbfb2bf938e80e45c2808e8a2b9e2a135","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.12.2","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"d46cf79fbfb2bf938e80e45c2808e8a2b9e2a135","size":2760,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.3.0.tgz"},"directories":{},"publish_time":1431065858391,"_hasShrinkwrap":false,"_cnpm_publish_time":1431065858391,"_cnpmcore_publish_time":"2021-12-16T19:14:50.629Z"},"1.2.1":{"name":"prepend-file","version":"1.2.1","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","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"},"engines":{"node":">=0.10.0"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec && rm -rf ./coverage","lint":"jshint *.js --exclude node_modules && jscs *.js","test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.13","jscs":"^1.13.1","jshint":"^2.6.3","mocha":"*"},"gitHead":"09ecfc88ee571329f65fa2637659fb8a38bc9305","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file#readme","_id":"prepend-file@1.2.1","_shasum":"c5f805d352edd07c065da2912013557820c0fd1e","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.12.2","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"c5f805d352edd07c065da2912013557820c0fd1e","size":2749,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.2.1.tgz"},"directories":{},"publish_time":1430730770234,"_hasShrinkwrap":false,"_cnpm_publish_time":1430730770234,"_cnpmcore_publish_time":"2021-12-16T19:14:50.818Z"},"1.2.0":{"name":"prepend-file","version":"1.2.0","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","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"},"engines":{"node":">=0.10.0"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec && rm -rf ./coverage","lint":"jshint *.js --exclude node_modules && jscs *.js","test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.13","jscs":"^1.13.1","jshint":"^2.6.3","mocha":"*"},"gitHead":"93b868884bb3fc45a04832baf9dacf5d5474cf65","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file#readme","_id":"prepend-file@1.2.0","_shasum":"020300b66ae02bda6371daf91b7b1020606f8a52","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.12.2","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"020300b66ae02bda6371daf91b7b1020606f8a52","size":2745,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.2.0.tgz"},"directories":{},"publish_time":1430730353704,"_hasShrinkwrap":false,"_cnpm_publish_time":1430730353704,"_cnpmcore_publish_time":"2021-12-16T19:14:51.032Z"},"1.1.0":{"name":"prepend-file","version":"1.1.0","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"coverage":"istanbul cover _mocha -- -R spec && rm -rf ./coverage","lint":"jshint *.js --exclude node_modules","test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"coveralls":"^2.11.2","istanbul":"^0.3.13","jshint":"^2.6.3","mocha":"*"},"gitHead":"e1ac6ece90f44ddd3cc08ca17068834fd94f39b4","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@1.1.0","_shasum":"d1b921bb0ca95c89bdd97718e32d30caf2026812","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.0","_npmUser":{"name":"stevemao","email":"steve.mao@healthinteract.com.au"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"d1b921bb0ca95c89bdd97718e32d30caf2026812","size":2671,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.1.0.tgz"},"directories":{},"publish_time":1428408661404,"_hasShrinkwrap":false,"_cnpm_publish_time":1428408661404,"_cnpmcore_publish_time":"2021-12-16T19:14:51.230Z"},"1.0.0":{"name":"prepend-file","version":"1.0.0","description":"Prepend data to a file, creating the file if it not yet exists.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"mocha":"*"},"dependencies":{"lodash.assign":"^3.0.0","lodash.clone":"^3.0.1"},"gitHead":"1323d704933684fc9da7fc33dae9c77ee0928424","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@1.0.0","_shasum":"83981a7b076cf2993273fac2a1f2ee396d310e98","_from":".","_npmVersion":"2.1.18","_nodeVersion":"1.0.2","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"83981a7b076cf2993273fac2a1f2ee396d310e98","size":2036,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-1.0.0.tgz"},"directories":{},"publish_time":1428374320953,"_hasShrinkwrap":false,"_cnpm_publish_time":1428374320953,"_cnpmcore_publish_time":"2021-12-16T19:14:51.438Z"},"0.2.0":{"name":"prepend-file","version":"0.2.0","description":"Prepend data to a file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"mocha":"*","mock-fs":"^2.3.2"},"gitHead":"e7ad7f36590db34c64a208ec0a0763b277e67d54","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@0.2.0","_shasum":"24425c8b386cd2e4c70f338bf74704a78189c40a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"24425c8b386cd2e4c70f338bf74704a78189c40a","size":1070,"noattachment":false,"key":"/prepend-file/-/prepend-file-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-0.2.0.tgz"},"directories":{},"publish_time":1416661538122,"_hasShrinkwrap":false,"_cnpm_publish_time":1416661538122,"_cnpmcore_publish_time":"2021-12-16T19:14:51.636Z"},"0.1.2":{"name":"prepend-file","version":"0.1.2","description":"Prepend data to a file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"mocha":"*","mock-fs":"^2.3.1"},"bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@0.1.2","_shasum":"5932b4abd49c45cf1564561f35e76f8decc0cfd3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"5932b4abd49c45cf1564561f35e76f8decc0cfd3","size":1080,"noattachment":false,"key":"/prepend-file/-/prepend-file-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-0.1.2.tgz"},"directories":{},"publish_time":1403366863625,"_hasShrinkwrap":false,"_cnpm_publish_time":1403366863625,"_cnpmcore_publish_time":"2021-12-16T19:14:52.081Z"},"0.1.1":{"name":"prepend-file","version":"0.1.1","description":"Prepend data to a file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"mocha":"*","mock-fs":"^2.3.1"},"bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@0.1.1","_shasum":"5f80d1ecd18e0cd07f1e4c12bab9ff56467bf542","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"5f80d1ecd18e0cd07f1e4c12bab9ff56467bf542","size":1076,"noattachment":false,"key":"/prepend-file/-/prepend-file-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-0.1.1.tgz"},"directories":{},"publish_time":1403274677761,"_hasShrinkwrap":false,"_cnpm_publish_time":1403274677761,"_cnpmcore_publish_time":"2021-12-16T19:14:52.323Z"},"0.1.0":{"name":"prepend-file","version":"0.1.0","description":"Prepend data to a file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/node-prepend-file"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["fs","file","prepend"],"devDependencies":{"mocha":"*","mock-fs":"^2.3.1"},"bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"homepage":"https://github.com/hemanth/node-prepend-file","_id":"prepend-file@0.1.0","_shasum":"d01526e6027bf0b8e536f3a5ce60fee80fa8c94f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"},{"name":"richienb","email":"richiebendall@gmail.com"},{"name":"stevemao","email":"maochenyan@gmail.com"}],"dist":{"shasum":"d01526e6027bf0b8e536f3a5ce60fee80fa8c94f","size":702,"noattachment":false,"key":"/prepend-file/-/prepend-file-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/prepend-file/download/prepend-file-0.1.0.tgz"},"directories":{},"publish_time":1403272346305,"_hasShrinkwrap":false,"_cnpm_publish_time":1403272346305,"_cnpmcore_publish_time":"2021-12-16T19:14:52.496Z"}},"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","_attachments":{},"homepage":"https://github.com/hemanth/node-prepend-file#readme","bugs":{"url":"https://github.com/hemanth/node-prepend-file/issues"},"license":"MIT"}