{"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"}],"dist":{"shasum":"24425c8b386cd2e4c70f338bf74704a78189c40a","tarball":"http://registry-npm.ywwl.com/prepend-file/download/prepend-file-0.2.0.tgz","integrity":"sha512-CG4FGK9LNp9PGDtN5OiBbe/0J3nnNw91fRvjvNc9ZdsHyrKFmBs9D5fcScT3FCUsfgjBInqCsKCdiNETgsUFFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0S3Nnc7teFWR8W5cTM8P5Uki+1VAzQr9EEiir5oMVSgIgMTNH2V0J0NlCSf8SHHT+zNUkoyzSNwxkqn4hBxLWE6M="}],"size":1070,"noattachment":false,"key":"/prepend-file/-/prepend-file-0.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":1416661538122,"_cnpm_publish_time":1416661538122,"dist-tags":{"latest":"2.0.2"}}