{
  "manifest": {
    "name": "makeerror",
    "description": "A library to make errors.",
    "version": "1.0.12",
    "license": "BSD-3-Clause",
    "author": {
      "name": "Naitik Shah",
      "email": "n@daaku.org"
    },
    "main": "lib/makeerror",
    "repository": {
      "type": "git",
      "url": "https://github.com/daaku/nodejs-makeerror"
    },
    "scripts": {
      "test": "NODE_PATH=./lib mocha --ui exports"
    },
    "dependencies": {
      "tmpl": "1.0.5"
    },
    "devDependencies": {
      "mocha": "9.1.3"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-makeerror-1.0.12-3e5dd2079a82e812e983cc6610c4a2cb0eaa801a-integrity/node_modules/makeerror/package.json",
    "readmeFilename": "readme.md",
    "readme": "makeerror [![Build Status](https://secure.travis-ci.org/nshah/nodejs-makeerror.png)](http://travis-ci.org/nshah/nodejs-makeerror)\n=========\n\nA library to make errors.\n\n\nBasics\n------\n\nMakes an Error constructor function with the signature below. All arguments are\noptional, and if the first argument is not a `String`, it will be assumed to be\n`data`:\n\n```javascript\nfunction(message, data)\n```\n\nYou'll typically do something like:\n\n```javascript\nvar makeError = require('makeerror')\nvar UnknownFileTypeError = makeError(\n  'UnknownFileTypeError',\n  'The specified type is not known.'\n)\nvar er = UnknownFileTypeError()\n```\n\n`er` will have a prototype chain that ensures:\n\n```javascript\ner instanceof UnknownFileTypeError\ner instanceof Error\n```\n\n\nTemplatized Error Messages\n--------------------------\n\nThere is support for simple string substitutions like:\n\n```javascript\nvar makeError = require('makeerror')\nvar UnknownFileTypeError = makeError(\n  'UnknownFileTypeError',\n  'The specified type \"{type}\" is not known.'\n)\nvar er = UnknownFileTypeError({ type: 'bmp' })\n```\n\nNow `er.message` or `er.toString()` will return `'The specified type \"bmp\" is\nnot known.'`.\n\n\nPrototype Hierarchies\n---------------------\n\nYou can create simple hierarchies as well using the `prototype` chain:\n\n```javascript\nvar makeError = require('makeerror')\nvar ParentError = makeError('ParentError')\nvar ChildError = makeError(\n  'ChildError',\n  'The child error.',\n  { proto: ParentError() }\n)\nvar er = ChildError()\n```\n\n`er` will have a prototype chain that ensures:\n\n```javascript\ner instanceof ChildError\ner instanceof ParentError\ner instanceof Error\n```\n",
    "licenseText": "BSD License\n\nCopyright (c) 2014, Naitik Shah. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n * Neither the name Naitik Shah nor the names of its contributors may be used to\n   endorse or promote products derived from this software without specific\n   prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz",
    "hash": "3e5dd2079a82e812e983cc6610c4a2cb0eaa801a",
    "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==",
    "registry": "npm",
    "packageName": "makeerror",
    "cacheIntegrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== sha1-Pl3SB5qC6BLpg8xmEMSiyw6qgBo="
  },
  "registry": "npm",
  "hash": "3e5dd2079a82e812e983cc6610c4a2cb0eaa801a"
}