1.0.5 • Published 8 years ago

safe-write-stream v1.0.5

Weekly downloads
13
License
CC0-1.0
Repository
github
Last release
8 years ago

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.

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago