{ "_args": [ [ { "raw": "set-blocking@^2.0.0", "scope": null, "escapedName": "set-blocking", "name": "set-blocking", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/yargs" ] ], "_from": "set-blocking@>=2.0.0 <3.0.0", "_id": "set-blocking@2.0.0", "_inCache": true, "_location": "/set-blocking", "_nodeVersion": "0.12.7", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/set-blocking-2.0.0.tgz_1463525966987_0.5456729622092098" }, "_npmUser": { "name": "bcoe", "email": "ben@npmjs.com" }, "_npmVersion": "2.11.3", "_phantomChildren": {}, "_requested": { "raw": "set-blocking@^2.0.0", "scope": null, "escapedName": "set-blocking", "name": "set-blocking", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/jest-runtime/yargs", "/jest/yargs", "/metro/yargs", "/react-native/yargs", "/yargs" ], "_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "_shasum": "045f9782d011ae9a6803ddd382b24392b3d890f7", "_shrinkwrap": null, "_spec": "set-blocking@^2.0.0", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/yargs", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" }, "bugs": { "url": "https://github.com/yargs/set-blocking/issues" }, "dependencies": {}, "description": "set blocking stdio and stderr ensuring that terminal output does not truncate", "devDependencies": { "chai": "^3.5.0", "coveralls": "^2.11.9", "mocha": "^2.4.5", "nyc": "^6.4.4", "standard": "^7.0.1", "standard-version": "^2.2.1" }, "directories": {}, "dist": { "shasum": "045f9782d011ae9a6803ddd382b24392b3d890f7", "tarball": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" }, "files": [ "index.js", "LICENSE.txt" ], "gitHead": "7eec10577b5fff264de477ba3b9d07f404946eff", "homepage": "https://github.com/yargs/set-blocking#readme", "keywords": [ "flush", "terminal", "blocking", "shim", "stdio", "stderr" ], "license": "ISC", "main": "index.js", "maintainers": [ { "name": "bcoe", "email": "ben@npmjs.com" } ], "name": "set-blocking", "optionalDependencies": {}, "readme": "# set-blocking\n\n[![Build Status](https://travis-ci.org/yargs/set-blocking.svg)](https://travis-ci.org/yargs/set-blocking)\n[![NPM version](https://img.shields.io/npm/v/set-blocking.svg)](https://www.npmjs.com/package/set-blocking)\n[![Coverage Status](https://coveralls.io/repos/yargs/set-blocking/badge.svg?branch=)](https://coveralls.io/r/yargs/set-blocking?branch=master)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\nset blocking `stdio` and `stderr` ensuring that terminal output does not truncate.\n\n```js\nconst setBlocking = require('set-blocking')\nsetBlocking(true)\nconsole.log(someLargeStringToOutput)\n```\n\n## Historical Context/Word of Warning\n\nThis was created as a shim to address the bug discussed in [node #6456](https://github.com/nodejs/node/issues/6456). This bug crops up on\nnewer versions of Node.js (`0.12+`), truncating terminal output.\n\nYou should be mindful of the side-effects caused by using `set-blocking`:\n\n* if your module sets blocking to `true`, it will effect other modules\n consuming your library. In [yargs](https://github.com/yargs/yargs/blob/master/yargs.js#L653) we only call\n `setBlocking(true)` once we already know we are about to call `process.exit(code)`.\n* this patch will not apply to subprocesses spawned with `isTTY = true`, this is\n the [default `spawn()` behavior](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).\n\n## License\n\nISC\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/yargs/set-blocking.git" }, "scripts": { "coverage": "nyc report --reporter=text-lcov | coveralls", "pretest": "standard", "test": "nyc mocha ./test/*.js", "version": "standard-version" }, "version": "2.0.0" }