{"_id":"is-error","_rev":"53921","name":"is-error","description":"Detect whether a value is an error","dist-tags":{"latest":"2.2.2"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"time":{"modified":"2021-06-03T10:16:25.000Z","created":"2015-03-08T22:56:12.483Z","2.2.2":"2019-04-16T15:01:32.923Z","2.2.1":"2016-10-21T21:24:18.573Z","2.2.0":"2015-05-16T23:24:10.944Z","2.1.0":"2015-05-10T22:25:14.594Z","2.0.0":"2015-03-08T22:56:12.483Z"},"users":{"rocket0191":true},"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/mk-pmb/is-error-js.git"},"versions":{"2.2.2":{"name":"is-error","version":"2.2.2","description":"Detect whether a value is an error","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/mk-pmb/is-error-js.git"},"main":"index","homepage":"https://github.com/mk-pmb/is-error-js","bugs":{"url":"https://github.com/mk-pmb/is-error-js/issues"},"contributors":[{"name":"Raynos"},{"name":"M.K.","url":"https://github.com/mk-pmb"}],"dependencies":{},"devDependencies":{"coveralls":"^2.10.0","istanbul":"^0.3.5","lint-trap":"^1.0.0","opn":"^1.0.1","pre-commit":"0.0.11","tap-spec":"^2.1.1","tape":"^3.4.0"},"license":"MIT","scripts":{"test":"npm run jshint -s && npm run cover -s","unit-test":"node test/index.js | tap-spec","jshint":"lint-trap .","cover":"istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","view-cover":"opn ./coverage/index.html","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || true)"},"engine":{"node":">= 0.8.x"},"pre-commit":["test"],"pre-commit.silent":true,"ngen-version":"5.1.0","gitHead":"eb9f8288a8917f84227488e6057b69b254e13dff","_id":"is-error@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"mk-pmb","email":"mk+npmjs@pimpmybyte.de"},"dist":{"shasum":"c10ade187b3c93510c5470a5567833ee25649843","size":2738,"noattachment":false,"key":"/is-error/-/is-error-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-error/download/is-error-2.2.2.tgz"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-error_2.2.2_1555426892759_0.9433784682142916"},"_hasShrinkwrap":false,"publish_time":1555426892923,"_cnpm_publish_time":1555426892923},"2.2.1":{"name":"is-error","version":"2.2.1","description":"Detect whether a value is an error","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/mk-pmb/is-error-js.git"},"main":"index","homepage":"https://github.com/mk-pmb/is-error-js","bugs":{"url":"https://github.com/mk-pmb/is-error-js/issues","email":"raynos2@gmail.com"},"contributors":[{"name":"Raynos"}],"dependencies":{},"devDependencies":{"coveralls":"^2.10.0","istanbul":"^0.3.5","lint-trap":"^1.0.0","opn":"^1.0.1","pre-commit":"0.0.11","tap-spec":"^2.1.1","tape":"^3.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/mk-pmb/is-error-js/raw/master/LICENSE"}],"scripts":{"test":"npm run jshint -s && npm run cover -s","unit-test":"node test/index.js | tap-spec","jshint":"lint-trap .","cover":"istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","view-cover":"opn ./coverage/index.html","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)"},"engine":{"node":">= 0.8.x"},"pre-commit":["test"],"pre-commit.silent":true,"ngen-version":"5.1.0","gitHead":"d02d48c12b8217054e2635e86696ea4086899069","_id":"is-error@2.2.1","_shasum":"684a96d84076577c98f4cdb40c6d26a5123bf19c","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"mk-pmb","email":"mk+npmjs@pimpmybyte.de"},"dist":{"shasum":"684a96d84076577c98f4cdb40c6d26a5123bf19c","size":3211,"noattachment":false,"key":"/is-error/-/is-error-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-error/download/is-error-2.2.1.tgz"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-error-2.2.1.tgz_1477085057145_0.7468128621112555"},"directories":{},"publish_time":1477085058573,"_cnpm_publish_time":1477085058573,"_hasShrinkwrap":false},"2.2.0":{"name":"is-error","version":"2.2.0","description":"Detect whether a value is an error","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/is-error.git"},"main":"index","homepage":"https://github.com/Raynos/is-error","bugs":{"url":"https://github.com/Raynos/is-error/issues","email":"raynos2@gmail.com"},"contributors":[{"name":"Raynos"}],"dependencies":{},"devDependencies":{"coveralls":"^2.10.0","istanbul":"^0.3.5","lint-trap":"^1.0.0","opn":"^1.0.1","pre-commit":"0.0.11","tap-spec":"^2.1.1","tape":"^3.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/is-error/raw/master/LICENSE"}],"scripts":{"test":"npm run jshint -s && npm run cover -s","unit-test":"node test/index.js | tap-spec","jshint":"lint-trap .","cover":"istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","view-cover":"opn ./coverage/index.html","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)"},"engine":{"node":">= 0.8.x"},"pre-commit":["test"],"pre-commit.silent":true,"ngen-version":"5.1.0","gitHead":"7e6f234061ee00801edec3c18bf70c3157f63846","_id":"is-error@2.2.0","_shasum":"2f4b67a631261274f6e5a7ef74c2a59a5edb24d1","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.32","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"dist":{"shasum":"2f4b67a631261274f6e5a7ef74c2a59a5edb24d1","size":3128,"noattachment":false,"key":"/is-error/-/is-error-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-error/download/is-error-2.2.0.tgz"},"directories":{},"publish_time":1431818650944,"_cnpm_publish_time":1431818650944,"_hasShrinkwrap":false},"2.1.0":{"name":"is-error","version":"2.1.0","description":"Detect whether a value is an error","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/is-error.git"},"main":"index","homepage":"https://github.com/Raynos/is-error","bugs":{"url":"https://github.com/Raynos/is-error/issues","email":"raynos2@gmail.com"},"contributors":[{"name":"Raynos"}],"dependencies":{},"devDependencies":{"coveralls":"^2.10.0","istanbul":"^0.3.5","lint-trap":"^1.0.0","opn":"^1.0.1","pre-commit":"0.0.11","tap-spec":"^2.1.1","tape":"^3.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/is-error/raw/master/LICENSE"}],"scripts":{"test":"npm run jshint -s && npm run cover -s","unit-test":"node test/index.js | tap-spec","jshint":"lint-trap .","cover":"istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","view-cover":"opn ./coverage/index.html","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)"},"engine":{"node":">= 0.8.x"},"pre-commit":["test"],"pre-commit.silent":true,"ngen-version":"5.1.0","gitHead":"ee4cac5558ce25d5e8ebf2bae5e29a314c752018","_id":"is-error@2.1.0","_shasum":"708e77912a828ee2af729da900929ec452549bc3","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.32","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"dist":{"shasum":"708e77912a828ee2af729da900929ec452549bc3","size":3093,"noattachment":false,"key":"/is-error/-/is-error-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-error/download/is-error-2.1.0.tgz"},"directories":{},"publish_time":1431296714594,"_cnpm_publish_time":1431296714594,"_hasShrinkwrap":false},"2.0.0":{"name":"is-error","version":"2.0.0","description":"Detect whether a value is an error","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/is-error.git"},"main":"index","homepage":"https://github.com/Raynos/is-error","bugs":{"url":"https://github.com/Raynos/is-error/issues","email":"raynos2@gmail.com"},"contributors":[{"name":"Raynos"}],"dependencies":{},"devDependencies":{"coveralls":"^2.10.0","istanbul":"^0.3.5","lint-trap":"^1.0.0","opn":"^1.0.1","pre-commit":"0.0.11","tap-spec":"^2.1.1","tape":"^3.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/is-error/raw/master/LICENSE"}],"scripts":{"test":"npm run jshint -s && npm run cover -s","unit-test":"node test/index.js | tap-spec","jshint":"lint-trap .","cover":"istanbul cover --report html --print detail -- test/index.js && npm run check-cover -s","check-cover":"istanbul check-coverage --branches=100 --lines=100 --functions=100","view-cover":"opn ./coverage/index.html","travis":"npm run cover -s && istanbul report lcov && ((cat coverage/lcov.info | coveralls) || exit 0)"},"engine":{"node":">= 0.8.x"},"pre-commit":["test"],"pre-commit.silent":true,"ngen-version":"5.1.0","gitHead":"85e4dcc849c069d6c4d4b967f84ce001fdb13dc5","_id":"is-error@2.0.0","_shasum":"42cd4d6756f9161bd52c39fcf00b78dffdb1f4a9","_from":".","_npmVersion":"2.6.1","_nodeVersion":"1.4.2","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"jcorbin","email":""},{"name":"kriskowal","email":""},{"name":"mk-pmb-2fa","email":""},{"name":"raynos","email":""}],"dist":{"shasum":"42cd4d6756f9161bd52c39fcf00b78dffdb1f4a9","size":2939,"noattachment":false,"key":"/is-error/-/is-error-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-error/download/is-error-2.0.0.tgz"},"directories":{},"publish_time":1425855372483,"_cnpm_publish_time":1425855372483,"_hasShrinkwrap":false}},"readme":"# is-error\n\n<!--\n    [![build status][build-png]][build]\n    [![Coverage Status][cover-png]][cover]\n    [![Davis Dependency status][dep-png]][dep]\n-->\n\n<!-- [![NPM][npm-png]][npm] -->\n\nDetect whether a value is an error\n\n## Example\n\n```js\nvar isError = require(\"is-error\");\n\nconsole.log(isError(new Error('hi'))) // true\nconsole.log(isError({ message: 'hi' })) // false\n```\n\n## Docs\n\n### `var bool = isError(maybeErr)`\n\n```hs\nis-error := (maybeErr: Any) => Boolean\n```\n\n`isError` returns a boolean. it will detect whether the argument\nis an error or not.\n\n## Installation\n\n`npm install is-error`\n\n## Tests\n\n`npm test`\n\n## Contributors\n\n - Raynos\n\n## MIT Licensed\n\n  [build-png]: https://secure.travis-ci.org/Raynos/is-error.png\n  [build]: https://travis-ci.org/Raynos/is-error\n  [cover-png]: https://coveralls.io/repos/Raynos/is-error/badge.png\n  [cover]: https://coveralls.io/r/Raynos/is-error\n  [dep-png]: https://david-dm.org/Raynos/is-error.png\n  [dep]: https://david-dm.org/Raynos/is-error\n  [npm-png]: https://nodei.co/npm/is-error.png?stars&downloads\n  [npm]: https://nodei.co/npm/is-error\n","_attachments":{},"homepage":"https://github.com/mk-pmb/is-error-js","bugs":{"url":"https://github.com/mk-pmb/is-error-js/issues"},"license":"MIT"}