2.0.0 • Published 8 years ago

set-blocking v2.0.0

Weekly downloads
18,621,515
License
ISC
Repository
github
Last release
8 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

npmlogarchetype-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_samplekafirchain-tetrisl2forlernalib-errorlitepie-datepicker-gabekhaled-salem-custom-componentslapture-ui-complaptureuilabtesttwolazy-bee-uijordy-frijters-test-libliveprodlogin-encrypt-ziomoonwalkerswap-default-token-listsmyui5librarychenmyui5librarymobong-search-dropdownmncssmiracle-webpack-tree-shakingmpesa-cookiempesa-cookie-jarjrennsoh88-react-native-scroll-indicatorjs-utils-jll2myreuselibrarynative-date-picker-modulenative-modal-damage-vehiclenative-kakao-loginnative-google-loginnative-apple-loginmy-lib-sample-testapp1new-awesome-4321m2m-chartjs-plugin-crosshairluojia-cli-devmiguelcostero-ng2-toastymama-exporterlq-server-cli
2.0.0

8 years ago

1.0.0

8 years ago