Package Exports
- prepend-file
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prepend-file) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
prepend-file 
Prepend data to a file.
Install
$ npm install --save prepend-file
Usage
Node.js
var pf = require('prepend-file');
pf('/etc/passwd', 'perms', function(done){
if(done){
console.log("Data prepended!");
}
})
API
pf(filename, data, [options], callback)
* filename String
* data String | Buffer
* options Object
encoding String | Null default = 'utf8'
mode Number default = 438 (aka 0666 in Octal)
flag String default = 'w'
* callback Function
License
MIT © Hemanth.HM