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 0
This Week 2
This Month 2
Last Day 0
Last Week 4
Last Month 18
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |