# mute-stdout

> Mute and unmute stdout.

Latest version **2.0.0** (published 2021-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install mute-stdout
pnpm add mute-stdout
yarn add mute-stdout
bun add mute-stdout
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-11-22 |
| First published | 2015-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10.13.0 |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Gulp Team |
| Maintainers | sttk, phated, yocontra |
| Keywords | mute, silence is golden, stdout |

## Links

- npm: https://www.npmjs.com/package/mute-stdout
- Repository: https://github.com/gulpjs/mute-stdout
- Homepage: https://github.com/gulpjs/mute-stdout#readme
- Issues: https://github.com/gulpjs/mute-stdout/issues
- npm.io page: https://npm.io/package/mute-stdout

## Recent versions

- 2.0.0 (latest) — 2021-11-22
- 1.0.1 — 2018-08-18
- 1.0.0 — 2015-11-18
- 0.1.0 — 2015-08-21

## README

<p align="center">
  <a href="http://gulpjs.com">
    <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
  </a>
</p>

# mute-stdout

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Mute and unmute stdout.

## Usage

```js
var stdout = require('mute-stdout');

stdout.mute();

console.log('will not print');

stdout.unmute();

console.log('will print');
```

## API

### mute()

Mutes the `process.stdout` stream by replacing the `write` method with a no-op function.

### unmute()

Unmutes the `process.stdout` stream by restoring the original `write` method.

## License

MIT

<!-- prettier-ignore-start -->
[downloads-image]: http://img.shields.io/npm/dm/mute-stdout.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/mute-stdout
[npm-image]: http://img.shields.io/npm/v/mute-stdout.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/mute-stdout/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/mute-stdout/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/mute-stdout
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/mute-stdout/master.svg
<!-- prettier-ignore-end -->

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