npm install writefilesafer file writing for node
_With npm_
$ npm install writefile --save
then in your app:
``js`
var writefile = require('writefile')
both these function return Results though they expose their internal callback based APIs as fn.plain. Feel free to use those functions instead.
fs.writeFile() but makes parent directories if required
as above but accepts a Stream instead of a String
`bash``
$ npm install
$ node test