{"_id":"loud-rejection","_rev":"11031","name":"loud-rejection","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","dist-tags":{"latest":"2.2.0"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"time":{"modified":"2021-06-03T09:57:55.000Z","created":"2015-10-03T16:00:22.284Z","2.2.0":"2019-09-28T16:02:58.271Z","2.1.0":"2019-03-31T12:27:04.598Z","2.0.0":"2019-03-18T04:15:58.027Z","1.6.0":"2016-07-03T22:04:14.795Z","1.5.0":"2016-06-16T18:30:37.523Z","1.4.1":"2016-06-04T02:26:45.986Z","1.4.0":"2016-06-03T23:05:29.016Z","1.3.0":"2016-02-18T14:03:27.751Z","1.2.1":"2016-02-01T06:45:53.366Z","1.2.0":"2015-11-13T10:44:52.745Z","1.1.0":"2015-11-12T09:27:52.893Z","1.0.0":"2015-10-03T16:00:22.284Z"},"users":{"jamescostian":true,"zewish":true,"rocket0191":true,"heartnett":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"versions":{"2.2.0":{"name":"loud-rejection","version":"2.2.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^3.0.2"},"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"},"nyc":{"exclude":["fixture.js"]},"gitHead":"63acebc25e18516741b7328f4919922b529f8f69","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@2.2.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4255eb6e9c74045b0edc021fa7397ab655a8517c","size":2912,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-2.2.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loud-rejection_2.2.0_1569686578099_0.48452813947480156"},"_hasShrinkwrap":false,"publish_time":1569686578271,"_cnpm_publish_time":1569686578271},"2.1.0":{"name":"loud-rejection","version":"2.1.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava && tsd"},"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^3.0.2"},"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"},"nyc":{"exclude":["fixture.js"]},"gitHead":"b1816091141cb20c23d6631cbd409ed17425617d","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4020547ddbc39ed711c8434326df9fc7d2395355","size":2681,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-2.1.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loud-rejection_2.1.0_1554035224398_0.8761732611343158"},"_hasShrinkwrap":false,"publish_time":1554035224598,"_cnpm_publish_time":1554035224598},"2.0.0":{"name":"loud-rejection","version":"2.0.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && nyc ava && tsd-check"},"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^3.0.2"},"devDependencies":{"ava":"^1.3.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-check":"^0.5.0","xo":"^0.24.0"},"nyc":{"exclude":["fixture.js"]},"gitHead":"ca10fdf8b1e9fcd3d3ef337f5f105df42221ee0f","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8faeb97eb7bc833e933339bb67b909193d804ccc","size":2578,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-2.0.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loud-rejection_2.0.0_1552882557885_0.1049286150277573"},"_hasShrinkwrap":false,"publish_time":1552882558027,"_cnpm_publish_time":1552882558027},"1.6.0":{"name":"loud-rejection","version":"1.6.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^3.0.0"},"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":"*"},"nyc":{"exclude":["fixture.js"]},"gitHead":"174a9b37f0de7ed255526b506f37961f9f74bd4d","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.6.0","_shasum":"5b46f80147edee578870f086d04821cf998e551f","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5b46f80147edee578870f086d04821cf998e551f","size":2532,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.6.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/loud-rejection-1.6.0.tgz_1467583452502_0.21159938420169055"},"directories":{},"publish_time":1467583454795,"_cnpm_publish_time":1467583454795,"_hasShrinkwrap":false},"1.5.0":{"name":"loud-rejection","version":"1.5.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^3.0.0"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^2.0.0","nyc":"^6.2.1","xo":"*"},"nyc":{"exclude":["fixture.js"]},"gitHead":"0d8c7d16135be81ef8c6005cbced23953509fc48","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.5.0","_shasum":"be90d8e74d945f6d8112069967a6c4a89173308a","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be90d8e74d945f6d8112069967a6c4a89173308a","size":2444,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.5.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/loud-rejection-1.5.0.tgz_1466101836513_0.02026764629408717"},"directories":{},"publish_time":1466101837523,"_cnpm_publish_time":1466101837523,"_hasShrinkwrap":false},"1.4.1":{"name":"loud-rejection","version":"1.4.1","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^2.0.0","nyc":"^6.2.1","xo":"*"},"nyc":{"exclude":["fixture.js"]},"gitHead":"2784dbd94d82af4cf3614143b3916bc9323c0332","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.4.1","_shasum":"13f58c75b1430e65141cd075ace9a2ee575b236c","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"13f58c75b1430e65141cd075ace9a2ee575b236c","size":2439,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.4.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loud-rejection-1.4.1.tgz_1465007203353_0.1647904315032065"},"directories":{},"publish_time":1465007205986,"_cnpm_publish_time":1465007205986,"_hasShrinkwrap":false},"1.4.0":{"name":"loud-rejection","version":"1.4.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"currently-unhandled":"^0.4.1","signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^2.0.0","nyc":"^6.2.1","xo":"*"},"nyc":{"exclude":["fixture.js"]},"gitHead":"30bc7dd5962b7b3ca51578b06bde8d3880098afb","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.4.0","_shasum":"f3304a19d2fec9c0bff47144154cb25f0289dc23","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"f3304a19d2fec9c0bff47144154cb25f0289dc23","size":2442,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.4.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/loud-rejection-1.4.0.tgz_1464995127432_0.2797585523221642"},"directories":{},"publish_time":1464995129016,"_cnpm_publish_time":1464995129016,"_hasShrinkwrap":false},"1.3.0":{"name":"loud-rejection","version":"1.3.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"array-find-index":"^1.0.0","signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^1.0.0","nyc":"^5.0.1","xo":"*"},"config":{"nyc":{"exclude":["fixture.js"]}},"gitHead":"0bc730030d190edc2050d8e529f6252ae765edb7","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.3.0","_shasum":"f289a392f17d2baacf194d0a673004394433b115","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f289a392f17d2baacf194d0a673004394433b115","size":2563,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.3.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/loud-rejection-1.3.0.tgz_1455804204049_0.4460844199638814"},"directories":{},"publish_time":1455804207751,"_cnpm_publish_time":1455804207751,"_hasShrinkwrap":false},"1.2.1":{"name":"loud-rejection","version":"1.2.1","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/loud-rejection.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"array-find-index":"^1.0.0","signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^1.0.0","nyc":"^5.0.1","xo":"*"},"config":{"nyc":{"exclude":["fixture.js"]}},"gitHead":"b2676e557331991264def77a37ae8b94cab49f55","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","_id":"loud-rejection@1.2.1","_shasum":"90933e84ab2cde369830509357e9064ff7d8d187","_from":".","_npmVersion":"3.7.0","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"90933e84ab2cde369830509357e9064ff7d8d187","size":2567,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.2.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1454309153366,"_cnpm_publish_time":1454309153366,"_hasShrinkwrap":false},"1.2.0":{"name":"loud-rejection","version":"1.2.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/loud-rejection"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js","register.js","api.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","delay":"^1.0.0","get-stream":"^1.0.0","nyc":"^3.2.2","xo":"*"},"xo":{"ignores":["test.js"]},"config":{"nyc":{"exclude":["node_modules","test.js","fixture.js"]}},"gitHead":"5ed228786d1ae9a603deafb4c751410ece432802","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection","_id":"loud-rejection@1.2.0","_shasum":"f4f87db6abec3b7fe47834531ecf6a011143e58d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f4f87db6abec3b7fe47834531ecf6a011143e58d","size":2611,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.2.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447411492745,"_cnpm_publish_time":1447411492745,"_hasShrinkwrap":false},"1.1.0":{"name":"loud-rejection","version":"1.1.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/loud-rejection"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"files":["index.js"],"keywords":["promise","promises","unhandled","uncaught","rejection","loud","fail","catch","throw","handler","exit","debug","debugging","verbose"],"dependencies":{"signal-exit":"^2.1.2"},"devDependencies":{"ava":"*","bluebird":"^3.0.5","coveralls":"^2.11.4","get-stream":"^1.0.0","nyc":"^3.2.2","xo":"*"},"xo":{"ignores":["test.js"]},"config":{"nyc":{"exclude":["node_modules","test.js","fixture.js"]}},"gitHead":"4e31845f871e040439586c80f7e0b55175a79065","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection","_id":"loud-rejection@1.1.0","_shasum":"0957bc749f83232d9dbe14739d98df4657bf1890","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0957bc749f83232d9dbe14739d98df4657bf1890","size":2244,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.1.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1447320472893,"_cnpm_publish_time":1447320472893,"_hasShrinkwrap":false},"1.0.0":{"name":"loud-rejection","version":"1.0.0","description":"Make unhandled promise rejections fail loudly instead of the default silent fail","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/loud-rejection"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js || exit 0"},"files":["index.js"],"keywords":["promise","unhandled","rejection","loud","fail","catch","throw","handler","exit"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"276a6a83238acf9be535f3a78cd07cf5a40bf967","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"homepage":"https://github.com/sindresorhus/loud-rejection","_id":"loud-rejection@1.0.0","_shasum":"d7da07377ebe8c769c9a9dff42b226b085e83246","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d7da07377ebe8c769c9a9dff42b226b085e83246","size":1768,"noattachment":false,"key":"/loud-rejection/-/loud-rejection-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/loud-rejection/download/loud-rejection-1.0.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"directories":{},"publish_time":1443888022284,"_cnpm_publish_time":1443888022284,"_hasShrinkwrap":false}},"readme":"# loud-rejection [![Build Status](https://travis-ci.org/sindresorhus/loud-rejection.svg?branch=master)](https://travis-ci.org/sindresorhus/loud-rejection) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/loud-rejection/badge.svg?branch=master)](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---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-loud-rejection?utm_source=npm-loud-rejection&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/loud-rejection#readme","bugs":{"url":"https://github.com/sindresorhus/loud-rejection/issues"},"license":"MIT"}