{"_id":"is-error-constructor","_rev":"8-08fd1c445541007ddef7f8154df52697","name":"is-error-constructor","description":"Check if a value is an error constructor","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"is-error-constructor","version":"1.0.0","description":"Check if a value is an error constructor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["is","error","constructor","err","ctor","check","detect","instanceof"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"53a9fdf8d89e47346dbf448c46d4ccaa4c6bcdd8","bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","_id":"is-error-constructor@1.0.0","_shasum":"099c412e96924b001bd386d5844087d8ecfc9d92","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"099c412e96924b001bd386d5844087d8ecfc9d92","tarball":"https://registry.npmjs.org/is-error-constructor/-/is-error-constructor-1.0.0.tgz","integrity":"sha512-pSqLd6Ee38xx6fGT0fDSpU0QNGvnf19t9YshP1nUTgc4yGUgDZz+XtJ2avz8k1GbNkEbtlv4RQyNqZHvioeNVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK395LOtI4GO917aUoSk0G5Rh+mY56pS92n945plq67AIhAIKngu0poHtgtHWdC9cOrmG6ARNAy+yyP7fVLRwWjc+F"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-error-constructor-1.0.0.tgz_1477151020750_0.03889454808086157"},"directories":{}},"1.0.1":{"name":"is-error-constructor","version":"1.0.1","description":"Check if a value is an error constructor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["is","error","constructor","err","ctor","check","detect","instanceof"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"a09dd41b7e1aad008b7a20007fb89a2b29bff567","bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","_id":"is-error-constructor@1.0.1","_shasum":"4ea48863614dca5b69ec1d6f50ed26982f5e7192","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4ea48863614dca5b69ec1d6f50ed26982f5e7192","tarball":"https://registry.npmjs.org/is-error-constructor/-/is-error-constructor-1.0.1.tgz","integrity":"sha512-41CuabKpeXlCZSTn5Jrab3X5Kpum92FPjAC19h+psqDu1dcdZVroRCSg8pBwMDyDGlOr4TvbQDBJ2vn72XKFJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBA07OdU3ImeNe4gIV13iPzBaimS/AJOyB5n6PMA7r2YAiEAjLPc0tiNQB0Be/yvBwI5BiVnXiNu8ClphUNNkRuugn4="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-error-constructor-1.0.1.tgz_1477477667727_0.12042480707168579"},"directories":{}},"2.0.0":{"name":"is-error-constructor","version":"2.0.0","description":"Check if a value is an error constructor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["is","error","constructor","ctor","check","detect","instanceof"],"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"19b4e7ef0d95c074ecad34df9752686ec5064a27","bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","_id":"is-error-constructor@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-AYdfvCGdgEHdUPlXt+4x8gbPEr5eL9fiZFvGQalO4HmWx+5drmxBVS/lkehWpOTZWJG1rfQPQWmKYL2EdVcp1Q==","shasum":"ebd0acf28955984a5ae55c86b3e0c0c3967fc413","tarball":"https://registry.npmjs.org/is-error-constructor/-/is-error-constructor-2.0.0.tgz","fileCount":5,"unpackedSize":2723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchjdnCRA9TVsSAnZWagAAjlkQAIwX7ay6MYT/GokZAAOJ\nahA+rN3017wcSiaMpf+79cEcY5qLUgrAWYRUAJQnwiql5hF89kG6udoxkSKA\nY7D6vMDr3bGYZG6fdQa42t/TggtW85nBPRIUWeo9xo42wkxG+pFkAL5w0+Rk\nmtvhcRybeCpzEb8gEc21q/q9vl8Y23v+y2nolCLxXE275QMa1/2lKNssTnHZ\nDi/PXDM7iAHu2D6iDGqoxW7DxscCmks2q9dE9t6W9u4Jr7ZjZjs5YdQAtneq\n3bz5dWzpezv964OBKB4yBK97B2lKWwMG1JOag5pVYgyPol8Ua47Sxh+XQ15Y\nAXftSInnT5JMNalYrlZdQIuFQKZdQiT+SwevCiinwa1+AplU8NF/hqJb9f9U\nAzcuyx2P2RNpw/zjsZcRo5IheFZsyoVjPM/rbj8VzGCcJ+ctDjcpYkuLJ8Cb\nRjdht/Z0pPDh47K5txWt8i81L3HsobbZeikz2HH4l3XjMkfFuAUaz0WA7DLA\nWynIlfyO+IpOpTQ7c55rvGGVuXPKh/OciTMhMJRZdxwxtt+RVIFj2zQ2Mvt1\nH2xPzUnUN2hF4HRT3ckaupzWN5KwKxsv+vQWPF58/U+/q8e2oAIMAD8Ofy18\nfX2yuJd2UMtg3L0JI35/0KE7wfxbjIEub/6mfQQVogcFD1C8jcGOOSBybgcC\nC0b9\r\n=6EbJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOlnzQoq8Bge61PEtGFGX7JjvfQsTwHrXGO3I8R/LenwIhAK8thGRQ2OWCXpa9+d0H6rU/6/AkewTO4cQdJJL3sWuJ"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-error-constructor_2.0.0_1552299878724_0.9118080035228184"},"_hasShrinkwrap":false},"2.1.0":{"name":"is-error-constructor","version":"2.1.0","description":"Check if a value is an error constructor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["is","error","constructor","ctor","check","detect","instanceof"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"cd48c717e3876dc4d7c0d97a60a54ed9bdac5efc","bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","_id":"is-error-constructor@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-UICSSkd/VnAC1BbLKoND+J2zm/3VmvumO3ReUWJmXfTACphJm2ccseHp24B3y0gYCWahsxFVYqbPzlc3Cct8Zg==","shasum":"1b1f6909e66fef1bf3e24f130bc549abfd1b67fd","tarball":"https://registry.npmjs.org/is-error-constructor/-/is-error-constructor-2.1.0.tgz","fileCount":5,"unpackedSize":3347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpvXHCRA9TVsSAnZWagAACIsQAIIcEAWoLcLxriseQmxF\np+WA2Vyww6BkMgFgqTXj9rD5U3dE7WDu1KjYgNY6w7iV8u2MgGmk6v3j8XMI\no1S5CEEA1fVMtzjifbqrq0+LVwXIz6B0TBPVHWp6OYH4ZbGoKKyIc4Z4uBLK\nobYJus1bnOaDQ9FcgghysdDbIml6MNhDUPluii3XILxg2RNMcQxZayULUQ0X\n6/Nj/uwFVotzUdd67MpkR8n7784A28dQ4UH2yyYvHyQEjVmPNXa6eXyY8zru\np6jsr6qIg2KQaaX/ydm4oXiPgNe1/23s2mQA4O/3el8kl0ctyj3s9q9v3skk\nV1azTGQzPl2oIkPtERzVJ59GfEGR1NZgOVlA/Nni/ZE9XhVZ9NUXzy93G25a\nnMpMM7gDgA4ZlXOfGoZTCrUixZV4KUeDDSprFnbz9uz56lkqsM8348gQHNT4\nheXNhh3oDuYGNblbVXJSKZQGRVYHW37W/jnausgdpRzzFFQ596siVNf5cxG6\nHd1zzIs7OY7T4XleuKo1XyKATGZSRCuCCTNyg9W3j0IF8G3nX7LL0sr96WPS\n0ycc6dBqE3HaQZJbZAjZE77B1+3aY8qsjTSc9GrlTEnMQGt6tmyH5nNiAoLW\nGSrFpBeLBlo35Ng2s/76GIBMsAl5gKRDUxyqr+iHp/yo7LIdVrwFkr5wSYB4\nBUcp\r\n=azuR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwv8W3SWsIFfxz7HwRgoI4v8n8IS/yMsM+FhMLXiyMRgIgbyvdqarYT8W1dd4v1z5Ftv6yrA3jpY1Uy+H6p/bArck="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-error-constructor_2.1.0_1554445766483_0.6083851294883813"},"_hasShrinkwrap":false},"3.0.0":{"name":"is-error-constructor","version":"3.0.0","description":"Check if a value is an error constructor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["is","error","constructor","ctor","check","detect","instanceof"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"107768c0d7680342ccfc82a8f534e16b6612cf07","bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","_id":"is-error-constructor@3.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-jU/fSr4WSwSb4R/CDAudcmwaH4gvIj1auDNULp8ZZRJqzCxGa/LKrTz5FbfXktFZDCqOA7i6RAaoHo8XG3vqRw==","shasum":"f45e88bdb699f892031916a0604f67087dd5937f","tarball":"https://registry.npmjs.org/is-error-constructor/-/is-error-constructor-3.0.0.tgz","fileCount":5,"unpackedSize":2912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbWFJCRA9TVsSAnZWagAAx7gQAIDuAGXqzjFAmlnUrDAa\nZ23tEjgpnOg/Uaaj8NPovy142I+sRQLvVMRmh1oUrFu0SNRhA57F2vuuuF04\ndEW8XQOnayKBq9S37Qd19HZ9cj6HcTWByJC7VGtj1ehbMolXNFyyPLWpwbuo\nY+awhMLjmoYP+gGWTr/oC+lpHSiwGmots3yjvsyf9bdFkA0Rd0EKRqnMfTSS\nK9bUFvTRNv3hCfMONmGvr74tIDZmFkAo9hU37qjv5jppmIZtzPZzz6qGk+EC\njoyM0imWipUQ2wTAywlyxzcgrAwzAyRXe/kh3LatOJ8Sqk9RhG1ihAemqO5a\n/BYcpOVpKHkbZMBgS9lfwd+7eDfs97i4r9l0u0FUzVst01pGjZF7du9yQdSg\nbdVOmDfva06lEZHoWYo4wedKBBHpxUewYMxw3pP6NMM6Q7+XMhy1i81MTnst\nFd9LVwF9h4igj2iRHQPZlQlYRwi1O0F/5nc9gfGs1qpDyik+0TO59EcGDT0J\nLDUCtK1wbBHmXoyhX/zUrealqwAhuwpGbuMqY67xmFOFA5efiiej8gdGxbAk\nnpSD4UEG69i5DubxkawHWEN8sy0ycTaRAESqzXQaNi1WkfcQHaiVl9R6h9lT\nyHaxrNtcY1Mrdm/ZaqfQHGa0RgDOrubA4asnIci2T39+DfsBqCTYT/OahzP4\nRtyl\r\n=bAF0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4oe+9mqyGDu01Gsh0QHgOQH8YX6wAgdwIy/rAtm6aNgIgTLHbGQO5w4Neq/tQCG4femGWVqfRvzhdyZ9f5q/RyTM="}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-error-constructor_3.0.0_1617781065015_0.637641721990043"},"_hasShrinkwrap":false}},"readme":"# is-error-constructor\n\n> Check if a value is an error constructor\n\n## Install\n\n```\n$ npm install is-error-constructor\n```\n\n## Usage\n\n```js\nimport isErrorConstructor from 'is-error-constructor';\n\nisErrorConstructor(Error);\n//=> true\n\nisErrorConstructor(RangeError);\n//=> true\n\nfunction FakeError() {}\nisErrorConstructor(FakeError);\n//=> false\n\nclass UnicornError extends Error {}\nisErrorConstructor(UnicornError);\n//=> true\n```\n\n## Related\n\n- [is](https://github.com/sindresorhus/is) - Type check values\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-19T02:40:44.042Z","created":"2016-10-22T15:43:40.978Z","1.0.0":"2016-10-22T15:43:40.978Z","1.0.1":"2016-10-26T10:27:51.983Z","2.0.0":"2019-03-11T10:24:38.847Z","2.1.0":"2019-04-05T06:29:26.779Z","3.0.0":"2021-04-07T07:37:45.173Z"},"homepage":"https://github.com/sindresorhus/is-error-constructor#readme","keywords":["is","error","constructor","ctor","check","detect","instanceof"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-error-constructor.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/is-error-constructor/issues"},"license":"MIT","readmeFilename":"readme.md"}