{"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":"stevemao","email":"steve.mao@healthinteract.com.au"}],"dist":{"shasum":"020300b66ae02bda6371daf91b7b1020606f8a52","tarball":"http://registry-npm.ywwl.com/prepend-file/download/prepend-file-1.2.0.tgz","integrity":"sha512-nY5PIVyJeoDjQgVrz7NPgHUe0BdiReDrXVWdTQUDiIxOTF5gNpai0pm7b5T1dxGmCJlGp5pgD46px8zjvf4aIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbV8anikMOOyQT0ce1IWN51UGMIoKWULvzXhC9OjRIRAiEA6rfXbFgyeIDUmBz68U4bJLtTfJnEgc8+YEl0p1qJIm8="}],"size":2745,"noattachment":false,"key":"/prepend-file/-/prepend-file-1.2.0.tgz"},"directories":{},"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":1430730353704,"_cnpm_publish_time":1430730353704,"dist-tags":{"latest":"2.0.2"}}