{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"1.0.1","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/domexception.git"},"main":"lib/public-api.js","files":["lib/"],"scripts":{"prepublish":"node scripts/generate.js","pretest":"npm run prepublish","test":"mocha","lint":"eslint lib"},"dependencies":{"webidl-conversions":"^4.0.2"},"devDependencies":{"eslint":"^4.3.0","mkdirp":"^0.5.1","mocha":"^3.5.0","request":"^2.81.0","webidl2js":"^7.2.0"},"gitHead":"5995e990587d4e3d49beb1d9f8a1e430f4be75e0","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==","shasum":"937442644ca6a31261ef36e3ec677fe805582c90","tarball":"http://registry-npm.ywwl.com/domexception/download/domexception-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+WBKnz7FD2sCFWYJ4fwgf7JcL15Q8okU7cgKL89tffgIgMYSNqYvj96r3PMvjAftGEwim7uV3MNams0yV5iAeqgw="}],"size":4124,"noattachment":false,"key":"/domexception/-/domexception-1.0.1.tgz"},"maintainers":[{"name":"domenic","email":"d@domenic.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception-1.0.1.tgz_1516581145452_0.33150808280333877"},"directories":{},"deprecated":"Use your platform's native DOMException instead","readme":"# DOMException\n\nThis package implements the [`DOMException`](https://heycam.github.io/webidl/#idl-DOMException) class, from web browsers. It exists in service of [jsdom](https://github.com/jsdom/jsdom) and related packages.\n\nExample usage:\n\n```js\nconst DOMException = require(\"domexception\");\n\nconst e1 = new DOMException(\"Something went wrong\", \"BadThingsError\");\nconsole.assert(e1.name === \"BadThingsError\");\nconsole.assert(e1.code === 0);\n\nconst e2 = new DOMException(\"Another exciting error message\", \"NoModificationAllowedError\");\nconsole.assert(e2.name === \"NoModificationAllowedError\");\nconsole.assert(e2.code === 7);\n\nconsole.assert(DOMException.INUSE_ATTRIBUTE_ERR === 10);\n```\n\n## APIs\n\nThis package exposes two flavors of the `DOMException` interface depending on the imported module.\n\n### `domexception` module\n\nThis module default-exports the `DOMException` interface constructor.\n\n### `domexception/webidl2js-wrapper` module\n\nThis module exports the `DOMException` [interface wrapper API](https://github.com/jsdom/webidl2js#for-interfaces) generated by [webidl2js](https://github.com/jsdom/webidl2js).\n","publish_time":1516581146351,"_cnpm_publish_time":1516581146351,"dist-tags":{"latest":"4.0.0"}}