0.0.1 • Published 8 years ago

create-output-stream v0.0.1

Weekly downloads
27,769
License
MIT
Repository
github
Last release
8 years ago

Node.js: createOutputStream

Exactly like fs.createWriteStream, but if the directory does not exist, it's created. Extracted from fs-extra

Install

npm i --save create-output-stream

Example

var fs = require('fs-extra')

// if /tmp/some does not exist, it is created
var ws = fs.createOutputStream('/tmp/some/file.txt')
ws.write('hello\n')

License

MIT