create-output-stream
Create an fs.writeableStream that won't error if the directory does not exist.
Last updated 4 years ago by jprichardson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install create-output-stream 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (4 years ago)

1 Versions

  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 1
This Week 5
This Month 10
Last Day 0
Last Week 8
Last Month 15
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |