2.0.0 • Published 9 years ago

set-blocking v2.0.0

Weekly downloads
18,621,515
License
ISC
Repository
github
Last release
9 years ago

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

npmloglerna@lerna/createarchetype-libraryeasy-select-rnvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsspecify-importsbabel-specify-imports@icanpm/api-mastergew-nodejs-api-clientfoshata-markdown@cashremit/cr-streamline-iconsreact-native-template-rfbasecloud-archive-s3airscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkeasycommands-betagql_din_mod@thebespokepixel/cordialbitgetreact-native-thanh-toast-librarysalut_gongjang_first_module@jttechnic/interpreter@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewer@saeon/ol-react@saeon/quick-formcthpb-plugin-social@olivervorasai/sliderreact-native-printer-brothersrn-pdf-reader-offlinereact-native-shekhar-bridge-testcogoportutilswilscanner@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-testreact-native-slider-kfnodejs-fileshareunblock-block-save-variables@infinitebrahmanuniverse/nolb-set@prodam/prodam-types@saaspe/componentsplginexpand-react-bridgenode-gioluminos-ui-core@everything-registry/sub-chunk-2740jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplelapture-ui-complaptureuigriffin-ui-library@wacoco/ytailwind-vector-effectsyncbackbasest2-npmlogtea-character-graphtea-introducetest-carosello-campustest-iki-mini-apptest-library-123test-haptik-libtea-word-arttea-test-threetea-test-twotest-npm-jjmessiwinx-form-winxweb-elements-iconsvue-button-test1webchewoven-challenge-deploywow.js-juziwifi_configuration_packagewskongkoinrn-tm-notifyrn-use-modal-hookrn-currency-formatterrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlocksharingcomponent2
2.0.0

9 years ago

1.0.0

9 years ago