null-writable
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

null-writable

Build Status 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 >= 6.

Installation

npm install null-writable

Additionally for Typescript:

npm install -D @types/node

Usage

const {NullWritable} = require("null-writable")

Typescript:

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

constructor

const stream = new NullWritable(options)

Create new NullWritable instance.

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

License

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

MIT

Dependencies (0)

    Dev Dependencies (23)

    Package Sidebar

    Install

    npm i null-writable

    Weekly Downloads

    248

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    7.48 kB

    Total Files

    10

    Last publish

    Collaborators

    • dex4er