# dev-null

> /dev/null for node streams

Latest version **0.1.1** (published 2013-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install dev-null
pnpm add dev-null
yarn add dev-null
bun add dev-null
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2013-09-10 |
| First published | 2013-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |
| Keywords | streams, test, debug, ignore, silence |

## Links

- npm: https://www.npmjs.com/package/dev-null
- Repository: https://github.com/thlorenz/dev-null
- Issues: https://github.com/thlorenz/dev-null/issues
- npm.io page: https://npm.io/package/dev-null

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2013-09-10
- 0.1.0 — 2013-09-10

## README

# dev-null [![build status](https://secure.travis-ci.org/thlorenz/dev-null.png)](http://travis-ci.org/thlorenz/dev-null)

`/dev/null` for node streams

Use it whenever you need to interrupt stream flow for instance if you want to log the state of a stream instead of its
output.

```js
// without devnull
var numbers = require('../test/fixtures/number-readable')

numbers({ to: 2 })
  .on('data', function (d) { console.log(d.toString()) });
// => 
// 0
// 1
// 2
```

```js
// piping into devnull
var devnull = require('dev-null');
var numbers = require('../test/fixtures/number-readable');

numbers({ to: 2 })
  .pipe(devnull())
  .on('data', function (d) { console.log(d.toString()) });

// => (no output)
```

## Installation

    npm install dev-null

## License

MIT

---
_Source: https://npm.io/package/dev-null · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
