Nefariously Pushing Master
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

safe-write-stream

1.0.5 • Public • Published

Safe Write Stream

Like fs.createWriteStream, but it will create the needed directories before trying to create the file.

Install

npm install safe-write-stream

Usage

var safeWriteStream = require('safe-write-stream');
 
fs.createReadStream('file.txt')
  .pipe(safeWriteStream(__dirname+'/these/will/be/created/file.txt'))

Parameters

See the fs.createWriteStream docs.

install

npm i safe-write-stream

Downloadsweekly downloads

8

version

1.0.5

license

CC0-1.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar