Skip to content

Node.js: exactly like `fs.createWriteStream`, but if the directory does not exist, it's created.

Notifications You must be signed in to change notification settings

jprichardson/create-output-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 createOutputStream = require('create-output-stream')

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

License

MIT

About

Node.js: exactly like `fs.createWriteStream`, but if the directory does not exist, it's created.

Resources

Stars

Watchers

Forks

Packages

No packages published