{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"1.0.0","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"},"devDependencies":{"eslint":"^4.3.0","mkdirp":"^0.5.1","mocha":"^3.5.0","request":"^2.81.0","webidl2js":"^7.2.0"},"gitHead":"ddf4e33b53d5ef8d77d6e06f7c38030aadab1440","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"integrity":"sha512-WpwuBlZ2lQRFa4H/4w49deb9rJLot9KmqrKKjMc9qBl7CID+DdC2swoa34ccRl+anL2B6bLp6TjFdIdnzekMBQ==","shasum":"81fe5df81b3f057052cde3a9fa9bf536a85b9ab0","tarball":"http://registry-npm.ywwl.com/domexception/download/domexception-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB7wn7sWOnJU1oIOGQdy1GEJ6Y3gC3ulHIEcKcJjrEgKAiEA3xjMVlSU/909QMi8eB5n1epjytIWwCenrwgSMUSK/nI="}],"size":4114,"noattachment":false,"key":"/domexception/-/domexception-1.0.0.tgz"},"maintainers":[{"name":"domenic","email":"d@domenic.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception-1.0.0.tgz_1502680599604_0.9427031551022083"},"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":1502680600561,"_cnpm_publish_time":1502680600561,"dist-tags":{"latest":"4.0.0"}}