writestreamp

A file write stream that creates its directory if it does not exist

Usage no npm install needed!

<script type="module">
  import writestreamp from 'https://cdn.skypack.dev/writestreamp';
</script>

README

node-writestreamp

Create a writable file stream without checking if a directory exists. Like mkdirp with files.

Build Status Dependency Status codecov

Usage

const wsp = require('writestreamp');
const ws = wsp('some/dir/that/might/not/exist/file', options);
readStream.pipe(ws);

Install

npm install writestreamp

Tests

Tests are written with mocha

npm test

License

MIT