{"name":"extendable-error","version":"0.1.0","description":"A simple extendable error class that extends Error.","main":"bld/index.js","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/extendable-error.git"},"keywords":[],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/extendable-error/issues"},"homepage":"https://github.com/vilic/extendable-error#readme","devDependencies":{"chai":"latest","mocha":"latest","typescript":"latest"},"gitHead":"04337d729381799ccade671bb083dbcee09604f9","_id":"extendable-error@0.1.0","_shasum":"587eb3f98589d5ed4a54192400d8d9238bae07c3","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"587eb3f98589d5ed4a54192400d8d9238bae07c3","tarball":"http://registry-npm.ywwl.com/extendable-error/download/extendable-error-0.1.0.tgz","integrity":"sha512-7joxharM8tJM/R6Dlpwqt0Tun9/I7yuAQtcaOFa6OUQxl9wifJExHLP+hNQ1STmc4vDCzgqpgs5PhYYD77Bnzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnJhbLtAASK+DdpQ5jEQoXzqywuY0jwYqbvPnt0QoGGwIhAO9Il06fLaB/fCvF5Qp+P2XLLEUHjLfIIiE9N6GHzSFA"}],"size":1585,"noattachment":false,"key":"/extendable-error/-/extendable-error-0.1.0.tgz"},"directories":{},"readme":"# Extendable Error [![Build Status](https://travis-ci.org/vilic/extendable-error.svg)](https://travis-ci.org/vilic/extendable-error)\n\nA simple abstract extendable error class that extends `Error`, which handles the error `name`, `message` and `stack` property.\n\n## Install\n\n```sh\nnpm install extendable-error --save\n```\n\n## Usage\n\n```ts\nimport ExtendableError from 'extendable-error';\n\nclass SomeError extends ExtendableError {\n  constructor(\n    message: string,\n    public code: number\n  ) {\n    super(message);\n  }\n}\n\nlet someError = new SomeError('Some error', 0x0001);\n```\n\n## License\n\nMIT License.\n","publish_time":1451492933913,"_cnpm_publish_time":1451492933913,"dist-tags":{"latest":"0.1.7"}}