@zkochan/pnpm
Version:
Fast, disk space efficient package manager
132 lines (131 loc) • 4.9 kB
JSON
{
"_args": [
[
{
"raw": "loud-rejection@1.6.0",
"scope": null,
"escapedName": "loud-rejection",
"name": "loud-rejection",
"rawSpec": "1.6.0",
"spec": "1.6.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm"
]
],
"_from": "loud-rejection@1.6.0",
"_id": "loud-rejection@1.6.0",
"_inCache": true,
"_location": "/loud-rejection",
"_nodeVersion": "4.4.5",
"_npmOperationalInternal": {
"host": "packages-16-east.internal.npmjs.com",
"tmp": "tmp/loud-rejection-1.6.0.tgz_1467583452502_0.21159938420169055"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "2.15.5",
"_phantomChildren": {},
"_requested": {
"raw": "loud-rejection@1.6.0",
"scope": null,
"escapedName": "loud-rejection",
"name": "loud-rejection",
"rawSpec": "1.6.0",
"spec": "1.6.0",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
"_shasum": "5b46f80147edee578870f086d04821cf998e551f",
"_shrinkwrap": null,
"_spec": "loud-rejection@1.6.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/loud-rejection/issues"
},
"dependencies": {
"currently-unhandled": "^0.4.1",
"signal-exit": "^3.0.0"
},
"description": "Make unhandled promise rejections fail loudly instead of the default silent fail",
"devDependencies": {
"ava": "*",
"bluebird": "^3.0.5",
"coveralls": "^2.11.4",
"delay": "^1.0.0",
"execa": "^0.4.0",
"get-stream": "^2.0.0",
"nyc": "^6.2.1",
"xo": "*"
},
"directories": {},
"dist": {
"shasum": "5b46f80147edee578870f086d04821cf998e551f",
"tarball": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js",
"register.js",
"api.js"
],
"gitHead": "174a9b37f0de7ed255526b506f37961f9f74bd4d",
"homepage": "https://github.com/sindresorhus/loud-rejection#readme",
"keywords": [
"promise",
"promises",
"unhandled",
"uncaught",
"rejection",
"loud",
"fail",
"catch",
"throw",
"handler",
"exit",
"debug",
"debugging",
"verbose"
],
"license": "MIT",
"maintainers": [
{
"name": "jamestalmage",
"email": "james@talmage.io"
},
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "loud-rejection",
"nyc": {
"exclude": [
"fixture.js"
]
},
"optionalDependencies": {},
"readme": "# loud-rejection [](https://travis-ci.org/sindresorhus/loud-rejection) [](https://coveralls.io/github/sindresorhus/loud-rejection?branch=master)\n\n> Make unhandled promise rejections fail loudly instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2)\n\nBy default, promises fail silently if you don't attach a `.catch()` handler to them.\n\nUse this in top-level things like tests, CLI tools, apps, etc, **but not in reusable modules.**<br>\nNot needed in the browser as unhandled promises are shown in the console.\n\n\n## Install\n\n```\n$ npm install --save loud-rejection\n```\n\n\n## Usage\n\n```js\nconst loudRejection = require('loud-rejection');\nconst promiseFn = require('promise-fn');\n\n// Install the unhandledRejection listeners\nloudRejection();\n\npromiseFn();\n```\n\nWithout this module it's more verbose and you might even miss some that will fail silently:\n\n```js\nconst promiseFn = require('promise-fn');\n\nfunction error(err) {\n\tconsole.error(err.stack);\n\tprocess.exit(1);\n}\n\npromiseFn().catch(error);\n```\n\n### Register script\n\nAlternatively to the above, you may simply require `loud-rejection/register` and the unhandledRejection listener will be automagically installed for you.\n\nThis is handy for ES2015 imports:\n\n```js\nimport 'loud-rejection/register';\n```\n\n\n## API\n\n### loudRejection([log])\n\n#### log\n\nType: `Function`<br>\nDefault: `console.error`\n\nCustom logging function to print the rejected promise. Receives the error stack.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/loud-rejection.git"
},
"scripts": {
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"test": "xo && nyc ava"
},
"version": "1.6.0"
}