A Duplex stream which discards all chunks passed through
npm install drop-stream> A Duplex stream which discards all chunks passed through.
```
$ npm install drop-stream --save
`js
const DropStream = require('drop-stream');
const fs = require('fs');
fs.createReadStream('todo.txt')
.pipe(new DropStream())
.pipe(fs.createWriteStream('done.txt'))
.on('finish', () => {
// => done.txt is empty
});
`
Drop streams are Transform streams.
#### new DropStream([options])
##### options
Type: Object
stream.Transform options.
#### DropStream#obj([options])
A convenience wrapper for new DropStream({...options, objectMode: true})`.
MIT © Michael Mayer