create-output-stream

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i create-output-stream

Weekly Downloads

56,473

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jprichardson