Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

set-blocking

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

set-blocking

set blocking stdio and stderr ensuring that terminal output does not truncate

    2.0.0latest
    Github

Version published
Maintainers
1
Weekly downloads
26,251,230
increased by8.53%

Weekly downloads

Changelog

Source

2.0.0 (2016-05-17)

Features

  • add an isTTY check (#3) (66ce277)

BREAKING CHANGES

  • stdio/stderr will not be set to blocking if isTTY === false

<a name="1.0.0"></a>

Readme

Source

set-blocking

Build Status NPM version Coverage Status Standard Version

set blocking stdio and stderr ensuring that terminal output does not truncate.

const setBlocking = require('set-blocking') setBlocking(true) console.log(someLargeStringToOutput)

Historical Context/Word of Warning

This was created as a shim to address the bug discussed in node #6456. This bug crops up on newer versions of Node.js (0.12+), truncating terminal output.

You should be mindful of the side-effects caused by using set-blocking:

  • if your module sets blocking to true, it will effect other modules consuming your library. In yargs we only call setBlocking(true) once we already know we are about to call process.exit(code).
  • this patch will not apply to subprocesses spawned with isTTY = true, this is the default spawn() behavior.

License

ISC

Keywords

FAQs

What is set-blocking?

set blocking stdio and stderr ensuring that terminal output does not truncate

Is set-blocking popular?

The npm package set-blocking receives a total of 24,947,343 weekly downloads. As such, set-blocking popularity was classified as popular.

Is set-blocking well maintained?

We found that set-blocking demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 17 May 2016

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc