writefile

0.2.8 • Public • Published

writefile

safer file writing for node

Getting Started

With npm

$ npm install writefile --save

then in your app:

var writefile = require('writefile')

API

both these function return Results though they expose their internal callback based APIs as fn.plain. Feel free to use those functions instead.

fromBuffer(path:String, text:String)

fs.writeFile() but makes parent directories if required

fromStream(path:String, text:Stream)

as above but accepts a Stream instead of a String

Running the tests

$ npm install
$ node test

Readme

Keywords

Package Sidebar

Install

npm i writefile

Weekly Downloads

135

Version

0.2.8

License

none

Last publish

Collaborators

  • jkroso