Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i create-output-stream

DownloadsWeekly Downloads

12,228

Version

0.0.1

License

MIT

Last publish

Collaborators

  • avatar