This module provides a
Writable
which
accepts all data and do nothing. It is like /dev/null
for Node.js streams.
It implements _writev
method so it is fast enough for buffered operations.
This module requires Node >= 16.
npm install null-writable
Additionally for Typescript:
npm install -D @types/node
import NullWritable from "null-writable"
// or
import {NullWritable} from "null-writable"
Create a new NullWritable
instance.
Options are the same as for Writable
constructor, like ie. highWaterMark
.
Copyright (c) 2018-2024 Piotr Roszatycki mailto:[email protected]