Skip to content

Vampire/js-null-writable

 
 

Repository files navigation

null-writable

GitHub CI Trunk Check Coverage Status npm

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.

Requirements

This module requires Node >= 16.

Installation

npm install null-writable

Additionally for Typescript:

npm install -D @types/node

Usage

import NullWritable from "null-writable"
// or
import {NullWritable} from "null-writable"

constructor

Create a new NullWritable instance.

Options are the same as for Writable constructor, like ie. highWaterMark.

License

Copyright (c) 2018-2024 Piotr Roszatycki mailto:piotr.roszatycki@gmail.com

MIT

About

Null writable stream

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 83.8%
  • JavaScript 16.2%