{"_id":"err-code","_rev":"95223","name":"err-code","description":"Create an error with a code","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"time":{"modified":"2021-06-03T10:31:44.000Z","created":"2014-06-28T12:06:00.817Z","3.0.1":"2021-02-05T15:55:03.335Z","3.0.0":"2021-02-02T12:39:42.703Z","2.0.3":"2020-06-18T12:10:15.542Z","2.0.2":"2020-06-13T07:07:08.774Z","2.0.1":"2020-06-10T14:22:42.112Z","2.0.0":"2019-07-17T16:10:23.999Z","1.1.2":"2017-04-03T22:22:46.839Z","1.1.1":"2016-01-14T02:56:31.087Z","1.1.0":"2016-01-14T02:54:21.473Z","1.0.0":"2016-01-02T16:49:59.672Z","0.1.2":"2014-08-12T14:31:50.170Z","0.1.1":"2014-07-17T10:05:01.874Z","0.1.0":"2014-06-28T12:06:00.817Z"},"users":{"jjvieira":true,"yonigoldberg":true},"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"versions":{"3.0.1":{"name":"err-code","version":"3.0.1","description":"Create an error with a code","main":"index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint '{./*.js,test/**/*.js}'","check":"tsc --noEmit","prepare":"tsc --emitDeclarationOnly --declarationDir dist","test":"mocha --bail","prepublishOnly":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","@types/expect.js":"0.3.29","@types/mocha":"8.2.0","browserify":"^17.0.0","eslint":"^7.19.0","expect.js":"^0.3.1","mocha":"^8.2.1","typescript":"^4.1.3"},"gitHead":"830d141eb633c21b842df3f78aba5786fee1b31d","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@3.0.1","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"a444c7b992705f2b120ee320b09972eef331c920","size":2596,"noattachment":false,"key":"/err-code/-/err-code-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-3.0.1.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_3.0.1_1612540503177_0.25365575138573626"},"_hasShrinkwrap":false,"publish_time":1612540503335,"_cnpm_publish_time":1612540503335},"3.0.0":{"name":"err-code","version":"3.0.0","description":"Create an error with a code","main":"index.js","types":"index.d.ts","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","check":"tsc --build","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","@types/expect.js":"0.3.29","@types/mocha":"8.2.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2","typescript":"^4.1.3"},"gitHead":"5e774e07af7ce7421450f22313490167394b013f","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@3.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"8d5af04379f18eeb31e9dce0ca82be8386039c23","size":4464,"noattachment":false,"key":"/err-code/-/err-code-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-3.0.0.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_3.0.0_1612269582574_0.9812419209318672"},"_hasShrinkwrap":false,"publish_time":1612269582703,"_cnpm_publish_time":1612269582703},"2.0.3":{"name":"err-code","version":"2.0.3","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^16.5.1","eslint":"^7.2.0","expect.js":"^0.3.1","mocha":"^8.0.1"},"gitHead":"92511d41a6a926c94c9d11493404867b1e92a77a","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.3","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"shasum":"23c2f3b756ffdfc608d30e27c9a941024807e7f9","size":3433,"noattachment":false,"key":"/err-code/-/err-code-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-2.0.3.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.3_1592482215326_0.18918066726812488"},"_hasShrinkwrap":false,"publish_time":1592482215542,"_cnpm_publish_time":1592482215542},"2.0.2":{"name":"err-code","version":"2.0.2","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"d6ee017ca3db9983bc16dc157b1485c9c71c6e23","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.2","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"shasum":"394458df3403578055b06fe6460b938ae743c29c","size":3365,"noattachment":false,"key":"/err-code/-/err-code-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-2.0.2.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.2_1592032028529_0.5072863440722495"},"_hasShrinkwrap":false,"publish_time":1592032028774,"_cnpm_publish_time":1592032028774},"2.0.1":{"name":"err-code","version":"2.0.1","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"6715bb58710c4e149b79bdb4cb32aca437192b8b","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"shasum":"fa2074c30259a55dd93bb952617c4997184bb7b1","size":3087,"noattachment":false,"key":"/err-code/-/err-code-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-2.0.1.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.1_1591798961982_0.09781283438698551"},"_hasShrinkwrap":false,"publish_time":1591798962112,"_cnpm_publish_time":1591798962112},"2.0.0":{"name":"err-code","version":"2.0.0","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"6ae501a12b74a2088a1e11502ec64be8920db3fa","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"dist":{"shasum":"452dadddde12356b1dd5a85f33b28ddda377ef2a","size":2685,"noattachment":false,"key":"/err-code/-/err-code-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-2.0.0.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.0_1563379823813_0.9193382197293369"},"_hasShrinkwrap":false,"publish_time":1563379823999,"_cnpm_publish_time":1563379823999},"1.1.2":{"name":"err-code","version":"1.1.2","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"af1a79e272c10e4daf38d75a3e91c85783b226a4","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.2","_shasum":"06e0116d3028f6aef4806849eb0ea6a748ae6960","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"06e0116d3028f6aef4806849eb0ea6a748ae6960","size":2810,"noattachment":false,"key":"/err-code/-/err-code-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-1.1.2.tgz"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/err-code-1.1.2.tgz_1491258166209_0.5635493844747543"},"directories":{},"publish_time":1491258166839,"_hasShrinkwrap":false,"_cnpm_publish_time":1491258166839},"1.1.1":{"name":"err-code","version":"1.1.1","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^1.0.8","browserify":"^13.0.0","expect.js":"^0.3.1","mocha":"^2.3.4"},"gitHead":"51cf8730f49dc6e12580e22ed714c7bc52238889","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.1","_shasum":"739d71b6851f24d050ea18c79a5b722420771d59","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"739d71b6851f24d050ea18c79a5b722420771d59","size":2807,"noattachment":false,"key":"/err-code/-/err-code-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-1.1.1.tgz"},"directories":{},"publish_time":1452740191087,"_cnpm_publish_time":1452740191087,"_hasShrinkwrap":false},"1.1.0":{"name":"err-code","version":"1.1.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^1.0.8","browserify":"^13.0.0","expect.js":"^0.3.1","mocha":"^2.3.4"},"gitHead":"60c1ff69fba79b90132248432089682837cfa992","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.0","_shasum":"76d5e2c8b99f7fac89886e760883f6a4abe76463","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"76d5e2c8b99f7fac89886e760883f6a4abe76463","size":2834,"noattachment":false,"key":"/err-code/-/err-code-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-1.1.0.tgz"},"directories":{},"publish_time":1452740061473,"_cnpm_publish_time":1452740061473,"_hasShrinkwrap":false},"1.0.0":{"name":"err-code","version":"1.0.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"^2.3.4","expect.js":"^0.3.1"},"gitHead":"346259a1a41e3688830a8f22f66419108b9b6e69","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.0.0","_shasum":"15d5aa25003c4ccbf9e09501ec5022fbb082a474","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"15d5aa25003c4ccbf9e09501ec5022fbb082a474","size":2111,"noattachment":false,"key":"/err-code/-/err-code-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-1.0.0.tgz"},"directories":{},"publish_time":1451753399672,"_cnpm_publish_time":1451753399672,"_hasShrinkwrap":false},"0.1.2":{"name":"err-code","version":"0.1.2","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.2","_shasum":"122a92b3342b9899da02b5ac994d30f95d4763ee","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"122a92b3342b9899da02b5ac994d30f95d4763ee","size":1918,"noattachment":false,"key":"/err-code/-/err-code-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-0.1.2.tgz"},"directories":{},"publish_time":1407853910170,"_cnpm_publish_time":1407853910170,"_hasShrinkwrap":false},"0.1.1":{"name":"err-code","version":"0.1.1","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.1","_shasum":"a710a2b4a5f1b7672616dcee2a1834fb2f4d4cd7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"a710a2b4a5f1b7672616dcee2a1834fb2f4d4cd7","size":1900,"noattachment":false,"key":"/err-code/-/err-code-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-0.1.1.tgz"},"directories":{},"publish_time":1405591501874,"_cnpm_publish_time":1405591501874,"_hasShrinkwrap":false},"0.1.0":{"name":"err-code","version":"0.1.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"gitHead":"7994ebf8fab2f8449931fc168cb8afad86cb4ed0","homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.0","_shasum":"a5dc76c504d3fdd5875b59291265d1b7d0c67eac","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"a5dc76c504d3fdd5875b59291265d1b7d0c67eac","size":1816,"noattachment":false,"key":"/err-code/-/err-code-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/err-code/download/err-code-0.1.0.tgz"},"directories":{},"publish_time":1403957160817,"_cnpm_publish_time":1403957160817,"_hasShrinkwrap":false}},"readme":"# err-code\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] [![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]\n\n[npm-url]:https://npmjs.org/package/err-code\n[downloads-image]:http://img.shields.io/npm/dm/err-code.svg\n[npm-image]:http://img.shields.io/npm/v/err-code.svg\n[travis-url]:https://travis-ci.org/IndigoUnited/js-err-code\n[travis-image]:http://img.shields.io/travis/IndigoUnited/js-err-code/master.svg\n[david-dm-url]:https://david-dm.org/IndigoUnited/js-err-code\n[david-dm-image]:https://img.shields.io/david/IndigoUnited/js-err-code.svg\n[david-dm-dev-url]:https://david-dm.org/IndigoUnited/js-err-code?type=dev\n[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/js-err-code.svg\n[greenkeeper-image]:https://badges.greenkeeper.io/IndigoUnited/js-err-code.svg\n[greenkeeper-url]:https://greenkeeper.io/\n\nCreate new error instances with a code and additional properties.\n\n\n## Installation\n\n```console\n$ npm install err-code\n// or\n$ bower install err-code\n```\n\nThe browser file is named index.umd.js which supports CommonJS, AMD and globals (errCode).\n\n\n## Why\n\nI find myself doing this repeatedly:\n\n```js\nvar err = new Error('My message');\nerr.code = 'SOMECODE';\nerr.detail = 'Additional information about the error';\nthrow err;\n```\n\n\n## Usage\n\nSimple usage.\n\n```js\nvar errcode = require('err-code');\n\n// fill error with message + code\nthrow errcode(new Error('My message'), 'ESOMECODE');\n// fill error with message + code + props\nthrow errcode(new Error('My message'), 'ESOMECODE', { detail: 'Additional information about the error' });\n// fill error with message + props\nthrow errcode(new Error('My message'), { detail: 'Additional information about the error' });\n```\n\n## Pre-existing fields\n\nIf the passed `Error` already has a `.code` field, or fields specified in the third argument to `errcode` they will be overwritten, unless the fields are read only or otherwise throw during assignment in which case a new object will be created that shares a prototype chain with the original `Error`. The `.stack` and `.message` properties will be carried over from the original error and `.code` or any passed properties will be set on it.\n\n\n## Tests\n\n`$ npm test`\n\n\n## License\n\nReleased under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n","_attachments":{},"homepage":"https://github.com/IndigoUnited/js-err-code#readme","bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"license":"MIT"}