pnpm
Version:
Fast, disk space efficient package manager
136 lines (135 loc) • 6.38 kB
JSON
{
"_args": [
[
{
"raw": "loud-rejection@2.1.0",
"scope": null,
"escapedName": "loud-rejection",
"name": "loud-rejection",
"rawSpec": "2.1.0",
"spec": "2.1.0",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm"
]
],
"_from": "loud-rejection@2.1.0",
"_hasShrinkwrap": false,
"_id": "loud-rejection@2.1.0",
"_location": "/loud-rejection",
"_nodeVersion": "8.15.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/loud-rejection_2.1.0_1554035224398_0.8761732611343158"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "6.9.0",
"_phantomChildren": {},
"_requested": {
"raw": "loud-rejection@2.1.0",
"scope": null,
"escapedName": "loud-rejection",
"name": "loud-rejection",
"rawSpec": "2.1.0",
"spec": "2.1.0",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-2.1.0.tgz",
"_shasum": "4020547ddbc39ed711c8434326df9fc7d2395355",
"_shrinkwrap": null,
"_spec": "loud-rejection@2.1.0",
"_where": "/home/zoltan/src/pnpm/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.2"
},
"description": "Make unhandled promise rejections fail loudly instead of the default silent fail",
"devDependencies": {
"ava": "^1.4.1",
"bluebird": "^3.5.3",
"coveralls": "^3.0.3",
"delay": "^4.1.0",
"execa": "^1.0.0",
"get-stream": "^5.0.0",
"nyc": "^13.3.0",
"tsd": "^0.7.1",
"xo": "^0.24.0"
},
"directories": {},
"dist": {
"integrity": "sha512-g/6MQxUXYHeVqZ4PGpPL1fS1fOvlXoi7bay0pizmjAd/3JhyXwxzwrnr74yzdmhuerlslbRJ3x7IOXzFz0cE5w==",
"shasum": "4020547ddbc39ed711c8434326df9fc7d2395355",
"tarball": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-2.1.0.tgz",
"fileCount": 6,
"unpackedSize": 5911,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoLIZCRA9TVsSAnZWagAAwa4QAIPFmRPFQrJBeYxkGPYZ\nLIy3N3IXpQUaPfnXG66hEpMK+crcJKq7yihD6zCo243n6YIILQGV7ldMWI9a\numraW7kWsnkXiGJO+kFa5TSi9MgaNC2veckl94cw/LEk2rzPkx/CIR28dBGn\nwaKfoN8FEhCFx/diL/jf2MJsLusoOBSYLtmGaDwNDsnSq113WEVrYvboX+18\nkGJFbe4xM16aYIzB+n26GIcgBdAskxM4mDmQ1EyDGK4afPk3luCnXJIUfVEq\nBZpzd6qyMkcsw6sZsbD8J+9Dim9i3iNEnm6QGnX24veyJiNNbJ8xqQyBBEpd\n9ir4U9LYtbDZ7NHBnPB9Ls/Yw9cFEMTKMQAJfqv4AWSQIk5JoVq5InsbrRS2\nvcCKgTydG7mwKuLUmMDtRrQbIIV8ENkYp7LRjXqt7GlOnpEpbbqducIAwgKb\njYLMXZeHWdNAWDxYGFPc2YHP6HhMLvCZ73o8QpcFso/ZtSzdrrqw9aj7gHrB\nldiwic/jAEbNPOWpSShCYQ/pfhSHqUmW/uylqruSCjWV6XdKhC7p9W5JBSMS\nse8xOJfJLDyehTsrfU5YvjRSEINjALsjB9zhZ/vScXYWc3V5AtfSuqg8rOZc\nbESfVUwoSRKlwN9hDgh2RpTKQQSEm4ZJZs0F4hsgmbids3Qg21IptLI4dhvT\nA/fz\r\n=BeG0\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=8"
},
"files": [
"index.js",
"index.d.ts",
"register.js"
],
"gitHead": "b1816091141cb20c23d6631cbd409ed17425617d",
"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\nThis tool keeps track of unhandled rejections globally. If any remain unhandled at the end of your process, it logs them to STDERR and exits with code 1.\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 rejections are shown in the console.\n\n\n## Install\n\n```\n$ npm install loud-rejection\n```\n\n\n## Usage\n\n```js\nconst loudRejection = require('loud-rejection');\nconst promiseFunction = require('promise-fn');\n\n// Install the `unhandledRejection` listeners\nloudRejection();\n\npromiseFunction();\n```\n\nWithout this module it's more verbose and you might even miss some that will fail silently:\n\n```js\nconst promiseFunction = require('promise-fn');\n\nfunction error(error) {\n\tconsole.error(error.stack);\n\tprocess.exit(1);\n}\n\npromiseFunction().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## Related\n\n- [hard-rejection](https://github.com/sindresorhus/hard-rejection) - Make unhandled promise rejections fail hard right away instead of the default silent fail\n- [More…](https://github.com/sindresorhus/promise-fun)\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": {
"test": "xo && nyc ava && tsd"
},
"version": "2.1.0"
}