{
  "_id": "fault",
  "maintainers": [
    {
      "name": "wooorm",
      "email": "tituswormer@gmail.com"
    }
  ],
  "keywords": [
    "error",
    "exception",
    "printf",
    "sprintf",
    "vsprintf",
    "format",
    "string"
  ],
  "dist-tags": {
    "latest": "2.0.1"
  },
  "author": {
    "name": "Titus Wormer",
    "email": "tituswormer@gmail.com",
    "url": "https://wooorm.com"
  },
  "_rev": "13-71258909583a1b46071f4be18d869bdf",
  "description": "Functional errors with formatted output",
  "readme": "# fault\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nFunctional errors with formatted output.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`fault(format?[, values…])`](#faultformat-values)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package adds printf-like interpolation to errors.\n\n## When should I use this?\n\nThis package useful when you frequently display parameters in error messages\nand manual string concatenation is becoming verbose.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install fault\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport {fault} from 'https://cdn.skypack.dev/fault@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import {fault} from 'https://cdn.skypack.dev/fault@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {fault} from 'fault'\n\nthrow fault('Hello %s!', 'Eric')\n```\n\nYields:\n\n```text\nError: Hello Eric!\n    at FormattedError (~/node_modules/fault/index.js:30:12)\n    at Object.<anonymous> (~/example.js:3:7)\n    …\n```\n\nOr, format a float in a type error:\n\n```js\nimport {fault} from 'fault'\n\nthrow fault.type('Who doesn’t like %f? 🍰', Math.PI)\n```\n\nYields:\n\n```text\nTypeError: Who doesn’t like 3.141593? 🍰\n    at Function.FormattedError [as type] (~/node_modules/fault/index.js:30:12)\n    at Object.<anonymous> (~/example.js:3:7)\n```\n\n## API\n\nThis package exports the following identifiers: `fault` and `create`.\nThere is no default export.\n\n### `fault(format?[, values…])`\n\nCreate an error with a printf-like formatted message.\n\n###### Parameters\n\n*   `format` (`string`, optional)\n    — template string\n*   `values` (`*`, optional)\n    — values to render in `format`\n\n###### Returns\n\nAn [`Error`][error] instance.\n\n###### Formatters\n\nThe following formatters are supported in `format`:\n\n*   `%s` — string\n*   `%b` — binary\n*   `%c` — character\n*   `%d` — decimal\n*   `%f` — floating point\n*   `%o` — octal\n*   `%x` — lowercase hexadecimal\n*   `%X` — uppercase hexadecimal\n*   `%` followed by any other character, prints that character\n\nSee [`samsonjs/format`][fmt] for argument parsing.\n\n###### Other errors\n\n*   `fault.eval(format?[, values…])` — [EvalError][]\n*   `fault.range(format?[, values…])` — [RangeError][]\n*   `fault.reference(format?[, values…])` — [ReferenceError][]\n*   `fault.syntax(format?[, values…])` — [SyntaxError][]\n*   `fault.type(format?[, values…])` — [TypeError][]\n*   `fault.uri(format?[, values…])` — [URIError][]\n\n#### `create(Constructor)`\n\nFactory to create instances of `ErrorConstructor` with support for formatting.\nUsed internally to wrap the global error constructors and exposed for custom\nerrors.\nReturns a function just like `fault`.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nThere are no extra exported types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/bail`](https://github.com/wooorm/bail)\n    — throw if given an error\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/fault/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/fault/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/fault.svg\n\n[coverage]: https://codecov.io/github/wooorm/fault\n\n[downloads-badge]: https://img.shields.io/npm/dm/fault.svg\n\n[downloads]: https://www.npmjs.com/package/fault\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/fault.svg\n\n[size]: https://bundlephobia.com/result?p=fault\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[fmt]: https://github.com/samsonjs/format\n\n[error]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/Error\n\n[evalerror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/EvalError\n\n[rangeerror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/RangeError\n\n[referenceerror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/ReferenceError\n\n[syntaxerror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/SyntaxError\n\n[typeerror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/TypeError\n\n[urierror]: https://developer.mozilla.org/JavaScript/Reference/Global_Objects/URIError.\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/wooorm/fault.git"
  },
  "bugs": {
    "url": "https://github.com/wooorm/fault/issues"
  },
  "license": "MIT",
  "versions": {
    "0.1.0": {
      "name": "fault",
      "version": "0.1.0",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "https://github.com/wooorm/fault.git"
      },
      "dependencies": {
        "format": "^0.2.1"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com"
      },
      "devDependencies": {
        "browserify": "^9.0.0",
        "eslint": "^0.15.0",
        "esmangle": "^1.0.0",
        "istanbul": "^0.3.0",
        "jscs": "^1.0.0",
        "jscs-jsdoc": "^0.4.0",
        "mdast": "^0.8.0",
        "mdast-usage": "^0.1.0",
        "mocha": "^2.0.0"
      },
      "scripts": {
        "test-api": "_mocha --check-leaks test.js",
        "test-coveralls": "istanbul cover _mocha --report lcovonly -- --check-leaks test.js",
        "test-coverage": "istanbul cover _mocha -- --check-leaks test.js",
        "test-travis": "npm run test-coveralls",
        "test": "npm run test-api",
        "lint-api": "eslint index.js",
        "lint-test": "eslint --env mocha test.js",
        "lint-style": "jscs --reporter inline index.js test.js",
        "lint": "npm run lint-api && npm run lint-test && npm run lint-style",
        "make": "npm run lint && npm run test-coverage",
        "build-usage": "mdast --use mdast-usage Readme.md -o Readme.md",
        "bundle": "browserify index.js -s fault > fault.js",
        "postbundle": "esmangle fault.js > fault.min.js",
        "build": "npm run build-usage && npm run bundle",
        "prepublish": "npm run build"
      },
      "gitHead": "50c5e2d99c1f66d75660e564d3b19a1f57edd5d1",
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "homepage": "https://github.com/wooorm/fault",
      "_id": "fault@0.1.0",
      "_shasum": "22ac9f33b9e7f33534a75c35a0d4ff44ca2ffd3c",
      "_from": ".",
      "_npmVersion": "2.6.1",
      "_nodeVersion": "0.12.0",
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "dist": {
        "shasum": "22ac9f33b9e7f33534a75c35a0d4ff44ca2ffd3c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-0.1.0.tgz",
        "integrity": "sha512-X2rPHyamETrozRTq5dymPbs0EZvNDaKvhONijIoxoppOM5mKhOiXnHv8GjpkdeYe/5POmpiRsw0VmGK5nToYZA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBtFjiEW+vBhZNAKmSlAiMfLc0t5E5F78RDmMwvr2BazAiEAufh3OjbCSkFthZIb/FzqAVVWiLN0M511PQYL6jCtTRQ="
          }
        ]
      },
      "directories": {}
    },
    "1.0.0": {
      "name": "fault",
      "version": "1.0.0",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "http://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "http://wooorm.com"
        }
      ],
      "files": [
        "index.js"
      ],
      "dependencies": {
        "format": "^0.2.2"
      },
      "devDependencies": {
        "browserify": "^13.0.0",
        "esmangle": "^1.0.0",
        "nyc": "^8.3.1",
        "remark-cli": "^2.0.0",
        "remark-preset-wooorm": "^1.0.0",
        "tape": "^4.0.0",
        "xo": "^0.17.0"
      },
      "scripts": {
        "build-md": "remark . --quiet --frail",
        "build-bundle": "browserify index.js --bare -s fault > fault.js",
        "build-mangle": "esmangle fault.js > fault.min.js",
        "build": "npm run build-md && npm run build-bundle && npm run build-mangle",
        "lint": "xo",
        "test-api": "node test.js",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run build && npm run lint && npm run test-coverage"
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "xo": {
        "space": true,
        "ignores": [
          "fault.js"
        ]
      },
      "remarkConfig": {
        "output": true,
        "presets": "wooorm"
      },
      "gitHead": "0b984e894743990a99cbb61b4f20406d343b9a13",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@1.0.0",
      "_shasum": "2f08f92943ace4fdb40781051cf34542560b99ae",
      "_from": ".",
      "_npmVersion": "2.14.2",
      "_nodeVersion": "4.0.0",
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "dist": {
        "shasum": "2f08f92943ace4fdb40781051cf34542560b99ae",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-1.0.0.tgz",
        "integrity": "sha512-/MHG4weyb5eFXVUat74Cqs2KmS9Sq+vuwyaW31Qedb1LKBaZHZd+SUNAgXANoaNreWRh2JXBTz5/8c1u+M9pVg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCSryu5wZpUwoOFSehEfiEJBEOel3OSH9J5r71gAk36aAIgC2M5VvyBFO4Bok7d2hK44xtBJqmkLtFwF1ENJASqK+4="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-18-east.internal.npmjs.com",
        "tmp": "tmp/fault-1.0.0.tgz_1478368738198_0.9253335727844387"
      },
      "directories": {}
    },
    "1.0.1": {
      "name": "fault",
      "version": "1.0.1",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "http://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "http://wooorm.com"
        }
      ],
      "files": [
        "index.js"
      ],
      "dependencies": {
        "format": "^0.2.2"
      },
      "devDependencies": {
        "browserify": "^14.0.0",
        "esmangle": "^1.0.0",
        "nyc": "^11.0.0",
        "remark-cli": "^3.0.0",
        "remark-preset-wooorm": "^3.0.0",
        "tape": "^4.0.0",
        "xo": "^0.18.0"
      },
      "scripts": {
        "build-md": "remark . -qfo",
        "build-bundle": "browserify index.js --bare -s fault > fault.js",
        "build-mangle": "esmangle fault.js > fault.min.js",
        "build": "npm run build-md && npm run build-bundle && npm run build-mangle",
        "lint": "xo",
        "test-api": "node test",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run build && npm run lint && npm run test-coverage"
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "xo": {
        "space": true,
        "esnext": false,
        "ignores": [
          "fault.js"
        ]
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "gitHead": "2da990b266ccd6cb7e90bd74beb0324327b9b978",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@1.0.1",
      "_shasum": "de8d350dfd48be24b5dc1b02867e0871b9135092",
      "_from": ".",
      "_npmVersion": "2.14.2",
      "_nodeVersion": "4.0.0",
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "dist": {
        "shasum": "de8d350dfd48be24b5dc1b02867e0871b9135092",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-1.0.1.tgz",
        "integrity": "sha512-OQB/1kngaEx3+LUqXEFWYoGGGSXxJmOeb0AR7pEXPw14dPbm641d5JmZTZx7WA2lhN/1Ixp8JN1fUHt/1yzXvA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIF/AU/oeBH9bOUnvVek2kJFcSPyB0cfA69+bzNeD1OagAiEA6seIFpgOu57N8ZEKaerVBNVx7iRZFmMXJ5j3iFnaEOw="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault-1.0.1.tgz_1500389448122_0.6580292116850615"
      },
      "directories": {}
    },
    "1.0.2": {
      "name": "fault",
      "version": "1.0.2",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "http://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "http://wooorm.com"
        }
      ],
      "files": [
        "index.js"
      ],
      "dependencies": {
        "format": "^0.2.2"
      },
      "devDependencies": {
        "browserify": "^16.0.0",
        "esmangle": "^1.0.0",
        "nyc": "^11.0.0",
        "prettier": "^1.12.0",
        "remark-cli": "^5.0.0",
        "remark-preset-wooorm": "^4.0.0",
        "tape": "^4.0.0",
        "xo": "^0.20.0"
      },
      "scripts": {
        "format": "remark . -qfo && prettier --write '**/*.js' && xo --fix",
        "build-bundle": "browserify index.js --bare -s fault > fault.js",
        "build-mangle": "esmangle fault.js > fault.min.js",
        "build": "npm run build-bundle && npm run build-mangle",
        "test-api": "node test",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run format && npm run build && npm run test-coverage"
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "esnext": false,
        "rules": {
          "no-var": "off",
          "prefer-arrow-callback": "off"
        },
        "ignores": [
          "fault.js"
        ]
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "gitHead": "de00ebd16a9802b50d8d800302d07cd61a71c653",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@1.0.2",
      "_npmVersion": "5.6.0",
      "_nodeVersion": "9.5.0",
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "dist": {
        "integrity": "sha512-o2eo/X2syzzERAtN5LcGbiVQ0WwZSlN3qLtadwAz3X8Bu+XWD16dja/KMsjZLiQr+BLGPDnHGkc4yUJf1Xpkpw==",
        "shasum": "c3d0fec202f172a3a4d414042ad2bb5e2a3ffbaa",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-1.0.2.tgz",
        "fileCount": 4,
        "unpackedSize": 6584,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa13xyCRA9TVsSAnZWagAAh0AQAIeWLtMQU+CHp89P0zQT\n8S3Klutwpe/a6rYJiAEypVzATFt6K+BA5GXZm6kORJo2EBWk0zfkZ77JceLv\nc4KelcfFUtJ4M6lsbDL0vIS5Aw/IdnpXfLG42a2Xecpy/9jqPX5td5mew3cS\nibhrz/G05WQL2zB3LvAzO0EjJZ4p8cwLgyPxMMLot16EH9e48N+Yt3TYvxk5\nsq62bfm1zWfLZS3oxq/A/LNN7WPt9S+uqNVl1BBjHTmPXOVz890xDradfck1\nvvm2CVuI9Z518USwVcGlw9O5IytR6e+11pqGyo62rdEVq8gEPX1tAIP/OKT4\nozfA6EkyrDSU96wAxgHjtF9h535BlkDvHdK/foxw/OxzCxtPD4cImcH3Ob5Q\n4cuKcTNQ5ZWzDPPLKWtrrdR1tuRrBoqDg1stdmk6CmiME3WgLosY05pJ2ktk\nqPrlKCWzJDaJuFx6ec/FS3HygaseIpxuThTRUw1Kpr2sNDUsGp+M4jcy3x9a\nqdl6l20f2gLOm+ydpFzPKC0moPbQMrDldw9ZYk2G+reBGL55f6zWx+Aa8vGy\niEs03XqrTEn3D0zEYxoYtntrpjm+1OAGoBnxcQ/fGL9lNimg2/rP+9LLjCYk\nc5PWepKpb6Vsf6WhfuvRohTKsPg2JzPiK4O66P0nzGeLjpfn2JXZ2/j36Qej\ndg3I\r\n=s1Du\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDSoYoVt+l71T2ptz91fdtjFd1Wvsg5nCNzVMWmmxsiLQIgaCycDBkrjSUaVVC3jYR75Sd4hookXJ3nwpXy/UcUgCw="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault_1.0.2_1524071537466_0.8954811364850628"
      },
      "_hasShrinkwrap": false
    },
    "1.0.3": {
      "name": "fault",
      "version": "1.0.3",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "dependencies": {
        "format": "^0.2.2"
      },
      "devDependencies": {
        "browserify": "^16.0.0",
        "nyc": "^14.0.0",
        "prettier": "^1.12.0",
        "remark-cli": "^6.0.0",
        "remark-preset-wooorm": "^4.0.0",
        "tape": "^4.0.0",
        "tinyify": "^2.5.0",
        "xo": "^0.24.0"
      },
      "scripts": {
        "format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
        "build-bundle": "browserify . -s fault -o fault.js",
        "build-mangle": "browserify . -s fault -p tinyify -o fault.min.js",
        "build": "npm run build-bundle && npm run build-mangle",
        "test-api": "node test",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run format && npm run build && npm run test-coverage"
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "esnext": false,
        "ignores": [
          "fault.js"
        ]
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "gitHead": "e2b74b756eecf4f19d61eb26ab1f96cc4c081a9b",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@1.0.3",
      "_nodeVersion": "11.9.0",
      "_npmVersion": "6.9.0",
      "dist": {
        "integrity": "sha512-sfFuP4X0hzrbGKjAUNXYvNqsZ5F6ohx/dZ9I0KQud/aiZNwg263r5L9yGB0clvXHCkzXh5W3t7RSHchggYIFmA==",
        "shasum": "4da88cf979b6b792b4e13c7ec836767725170b7e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-1.0.3.tgz",
        "fileCount": 4,
        "unpackedSize": 6788,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0oc6CRA9TVsSAnZWagAADekQAIN6FDeBhgBa124uoPrA\n773aOQwSBJpQjuiy3az4rIlZH+cjQq8ePe3x7SgzdkG/7MMt0idrDym2e9b2\n51G9Z+D3NrHalTtBUr0nHF0byU+a34/YdOU8RkTW5M2hhGNQcX7h9rulgEdz\n/44s/kwJhqK+bWlxxQvFEgukypLqv+kHL/quOw0KJ74+uiMQmFX52KDLwUEx\ncEuMtsBx0GHqjjM2ANHWNFsvhG9HxxzIhWAbxYyOJP7ObfMOj65IszbxHhOU\nTy86N/wd9VQqhuy6nIcguUa0hV05bDsH2JwCzjbVozfrWnQglb1w5HflM4vC\nGHKZxkVF9fFzexy8iySkcKbV5mHBuVSdtfDWtCgpdo1+YQpzsDDNAcwrNxcF\npOOF5UXjAvT43jJzPM7ojNxLUz8AQjptjy7RUcJ6ZV5m3JEG1nYUSxzv9Qdn\n8WV9mUE0tcdtdby0e2ei3xfmyzoBAw0i5aiUPa6K5hegcYOQMDe4obXSRSCi\nGJ+p3D+bG0E2fkQ6asROkSVnHKmEfXgb7IqqQzjWDq6jkxihoJ9/8eyJTqgK\nod5gfSXSs3ND+2UWXdSV6GIdxodwv7Rrl+yXnXoVGqs8tRRASIbtg7kQq2dx\nyplM4e8eNlnF0wQxcFabfhxqZU6Tz4oXpqOR5cCglDld693hBxrBZdlIFUVP\nQiHo\r\n=4w3Z\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDmiG+N3yYobTJe0P6Mhy0yHJFOm9yL/y8I3czhxtEuIQIgKVTIiMB9x+5L3ZFHgCg28UKjVXJJGABzqxekX5xrtD0="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault_1.0.3_1557301049918_0.3995388038254293"
      },
      "_hasShrinkwrap": false
    },
    "1.0.4": {
      "name": "fault",
      "version": "1.0.4",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/wooorm"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "dependencies": {
        "format": "^0.2.0"
      },
      "devDependencies": {
        "browserify": "^16.0.0",
        "nyc": "^15.0.0",
        "prettier": "^1.0.0",
        "remark-cli": "^7.0.0",
        "remark-preset-wooorm": "^6.0.0",
        "tape": "^4.0.0",
        "tinyify": "^2.0.0",
        "xo": "^0.25.0"
      },
      "scripts": {
        "format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
        "build-bundle": "browserify . -s fault -o fault.js",
        "build-mangle": "browserify . -s fault -p tinyify -o fault.min.js",
        "build": "npm run build-bundle && npm run build-mangle",
        "test-api": "node test",
        "test-coverage": "nyc --reporter lcov tape test.js",
        "test": "npm run format && npm run build && npm run test-coverage"
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "esnext": false,
        "rules": {
          "unicorn/prefer-reflect-apply": "off"
        },
        "ignores": [
          "fault.js"
        ]
      },
      "nyc": {
        "check-coverage": true,
        "lines": 100,
        "functions": 100,
        "branches": 100
      },
      "gitHead": "451abb5fe4a68df809db8498f65c46ef56eb228a",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@1.0.4",
      "_nodeVersion": "13.0.1",
      "_npmVersion": "6.13.6",
      "dist": {
        "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==",
        "shasum": "eafcfc0a6d214fc94601e170df29954a4f842f13",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-1.0.4.tgz",
        "fileCount": 4,
        "unpackedSize": 6940,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKsnTCRA9TVsSAnZWagAAqLoP/RUdkNIADyHlUpSMlu8k\nJHKTcYmSiF6ihlgYhArxWOAEyTmMfZUUAdL2qeRBSfhykj8h0Bh4TiFFbWDw\n6hcNgy91VHfDxYZaukmBg37TwmY2WIEThc2KmVPElHybpCaDBkrOwt6Ia/qc\nPiSygvL2bZ83UM9iauhHy2NQzTjAKIfZoMiXVRpazcmQZT/a6P/xB/HgF6Rj\nbsmcao8Nu2ZT2NbJGOBkUFZCwvuyb/Me3a4v5hgMpMZWkZQM131E51NUsbPC\nhPvqPjb9JhkjciaVANKjLkhg1n48eoFWUmJxXaUd3yRZeqAk57XK8cnBvsWw\naDRnqDw9WbUsPrjzqmrfzu2JoJLOgnzEup0QqHwFQ+e27HXBgLgrlDXIEVLP\nfIdC2Eji1p5xLQqb75bDyqvl4rTu73DWR7Brk4O9cieaTdMF+vYnaaGb5dL4\ngjqzbkt2/6ewl7nlwW0UGACqv45hqcxueqodpIkj4pup8iv2+pHzlp58KlFt\na9Pl8F1Gb8Go0/dADWK8GQzoU8+Zoqvk5rg1gZ63VSuBRPFO7m4kr5F/Ih2j\nI5L/GP3Tn/aRBRyMaMj6lot5OKLumuqBgwy8JKUeDOx00JHlt/K4gn4EMlyY\n1XRbOqKP5MIED/1aZbzNKt2Av/zNN6Bv162+yjacMbyVuBhJ+C05ny1sm2g/\nkaFZ\r\n=dIfi\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD3lASVFkhtW/P9IMSoqCyVl5RW3TggXaxQMsZngpvtpQIhAMeT6i+h0dcHCW9k1LXTmFoiF6mA9HXfDpGP+Kuj+1yE"
          }
        ]
      },
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault_1.0.4_1579862482852_0.8436321347057965"
      },
      "_hasShrinkwrap": false
    },
    "2.0.0": {
      "name": "fault",
      "version": "2.0.0",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/wooorm"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "format": "^0.2.0"
      },
      "devDependencies": {
        "@types/tape": "^4.0.0",
        "c8": "^7.0.0",
        "prettier": "^2.0.0",
        "remark-cli": "^9.0.0",
        "remark-preset-wooorm": "^8.0.0",
        "rimraf": "^3.0.0",
        "tape": "^5.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.38.0"
      },
      "scripts": {
        "prepack": "npm run build && npm run format",
        "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node test.js",
        "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
        "test": "npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true,
        "rules": {
          "import/no-mutable-exports": "off",
          "no-var": "off",
          "prefer-arrow-callback": "off"
        }
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true
      },
      "gitHead": "247d5112805ba9f73f454557adadfa248c3d77b8",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@2.0.0",
      "_nodeVersion": "15.11.0",
      "_npmVersion": "7.6.2",
      "dist": {
        "integrity": "sha512-JsDj9LFcoC+4ChII1QpXPA7YIaY8zmqPYw7h9j5n7St7a0BBKfNnwEBAUQRBx70o2q4rs+BeSNHk8Exm6xE7fQ==",
        "shasum": "ad2198a6e28e344dcda76a7b32406b1039f0b707",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-2.0.0.tgz",
        "fileCount": 5,
        "unpackedSize": 8742,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXvlYCRA9TVsSAnZWagAAPBAP+wc4RDRRWg+B2vuHtoPS\nRtqf8z6F9Z2thH/4NPJOPtca5YYryjKEXj/nyI5SOiJ7fgezBmpwkp38ylWb\nNB1LF0JGbeWc26ft9VbFsbn1h4aHShEykxKIJM5Xpszimi4lXnziGWj5UM0i\nHVqu72M3eO3G53HKlN2prz+mlmVq/oqhWx9w9xcHMyibHc+acSd8fzxhZ6xL\nph/Svk5Yr+QPwKUIiwrInoLetMRwtyH0JChN4NHl9imll8WNYnCJInPV9TJs\nhWCz/30uqeJKOKP5brydiEHtNlqv+I1MWmDQ83te2D35fkIBKlXbRqQqmLfb\nbfdRhV4v6kfMOVCuAUV4/t/eOq/e3YSuM61bczsDkOK7CWrn4yaYod01zwT7\nGUklH+KoA5DMxGMqsIpt6e4HOqPpvj+UuZZU39Wo1upZyXNwvo6rxSiaxWt4\nZn+3Zcxyw7Jf7gKnbIJ1HvLbf08P/dxER1N77gFG5/qlQxjKGx1OxBkeWAfP\nMgI49+gqLi5u6U2F8sv/Wkh85yDnKFtwN+6m5Fklq/jZIegItIBMC0HjXxod\n//4O7CvW9vZsxH01Lj/XNlx2k16CKNElE82G/TAMzSipIVkFvCDFsBvKK+Uw\nPUnrN+YtCLwqzkWObEGXBc+Okt5pOK2N/30npKwZ5PECQaOcNkod8ny484uI\nJcW+\r\n=4RMO\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIF5MzCffzpg+/L7bkfrTGJnGCQtCjr04YZ5INk4haZR9AiEA0rdsmvwUjSpu+5Y0FzP9EFv7LSzauJ3i7HxK04yHWi4="
          }
        ]
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault_2.0.0_1616836951632_0.9217113920088749"
      },
      "_hasShrinkwrap": false
    },
    "2.0.1": {
      "name": "fault",
      "version": "2.0.1",
      "description": "Functional errors with formatted output",
      "license": "MIT",
      "keywords": [
        "error",
        "exception",
        "printf",
        "sprintf",
        "vsprintf",
        "format",
        "string"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wooorm/fault.git"
      },
      "bugs": {
        "url": "https://github.com/wooorm/fault/issues"
      },
      "funding": {
        "type": "github",
        "url": "https://github.com/sponsors/wooorm"
      },
      "author": {
        "name": "Titus Wormer",
        "email": "tituswormer@gmail.com",
        "url": "https://wooorm.com"
      },
      "contributors": [
        {
          "name": "Titus Wormer",
          "email": "tituswormer@gmail.com",
          "url": "https://wooorm.com"
        }
      ],
      "sideEffects": false,
      "type": "module",
      "main": "index.js",
      "types": "index.d.ts",
      "dependencies": {
        "format": "^0.2.0"
      },
      "devDependencies": {
        "@types/tape": "^4.0.0",
        "c8": "^7.0.0",
        "prettier": "^2.0.0",
        "remark-cli": "^10.0.0",
        "remark-preset-wooorm": "^9.0.0",
        "rimraf": "^3.0.0",
        "tape": "^5.0.0",
        "type-coverage": "^2.0.0",
        "typescript": "^4.0.0",
        "xo": "^0.46.0"
      },
      "scripts": {
        "prepublishOnly": "npm run build && npm run format",
        "build": "rimraf \"*.d.ts\" && tsc && type-coverage",
        "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
        "test-api": "node --conditions development test.js",
        "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
        "test": "npm run build && npm run format && npm run test-coverage"
      },
      "prettier": {
        "tabWidth": 2,
        "useTabs": false,
        "singleQuote": true,
        "bracketSpacing": false,
        "semi": false,
        "trailingComma": "none"
      },
      "xo": {
        "prettier": true
      },
      "remarkConfig": {
        "plugins": [
          "preset-wooorm"
        ]
      },
      "typeCoverage": {
        "atLeast": 100,
        "detail": true,
        "strict": true,
        "ignoreCatch": true
      },
      "gitHead": "f2e9b858dae4683a04e437713fd3b2ee513a08e5",
      "homepage": "https://github.com/wooorm/fault#readme",
      "_id": "fault@2.0.1",
      "_nodeVersion": "17.0.1",
      "_npmVersion": "8.1.0",
      "dist": {
        "integrity": "sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==",
        "shasum": "d47ca9f37ca26e4bd38374a7c500b5a384755b6c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/fault/-/fault-2.0.1.tgz",
        "fileCount": 5,
        "unpackedSize": 10665,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2q0CCRA9TVsSAnZWagAAm+sQAIXkn/Ju/jtVSKx80wYC\nTKgYucHrrDVJaBD5TMu63hxOa/ZVsiCGP988JLMrh9QSXYz6gQcBbb287PKI\ncBvV4nmeSIJiJp1o19MPYv7Cv91YIAnzsGGhby1/fkKN6D+2sv6CX6F1Jq1r\nRMyQaLukMDwvprwWo1/sftttw90OuqAZde2gz2gknwHTrKh2mDsNSo8VP6QD\neFT4favqdgeGA2DqdysyVr9ypwhnesh+tYlPbSevgnep9B+cL4VzE8Wt0tTk\nOA2unXqBLxg39m818vmexYERAN7lRWYmc04w+aJ3e1M/r9bySafULwNPk/Mo\nKurj2nyXdKXtMnWkgszN8et/tdZRtFfiebqg3JYEdUiwORhdO1xxUIZnWHoy\nkHEZ+GUw9srCZ+qpM3EQR6eRm3Q5wbjqdJVosIIPd24oV2lLzKlNwflUqXkI\nqaYs6NgrpBOxRJv4kipecPCAEG8nAccm/gjNXwmTdUwvSrtSGXwkTNkT9loL\nTlZfx/TUa5tNpoBTeZ4TpT6uXPIxat6HIPuZM90zsFdK+SOhGhoEclUP4mbO\nRtx6TAc4BXOmFaAJ08x4v6IbxEWBVvax29kNzdPJBWEZGVobkFEl4/HP/w0n\nreeYw2G91SufMrqasgqUHMfhIHcA50uqCwaJZsqU20PWk3YVCXCLuq5a8wp1\nrpC5\r\n=4UA6\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDPFPVSQiCHmTYhri2KPhiY8IGrtH/EjI+ntnD6LEY8xgIhALyCkz9KcoB+FjiqejYDbiodFvsujhoZvGUWxg3RrVAu"
          }
        ]
      },
      "_npmUser": {
        "name": "wooorm",
        "email": "tituswormer@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "wooorm",
          "email": "tituswormer@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/fault_2.0.1_1636281635543_0.4101263478950683"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "fault",
  "time": {
    "modified": "2026-05-14T14:42:04.320Z",
    "created": "2015-03-03T16:17:11.159Z",
    "0.1.0": "2015-03-03T16:17:11.159Z",
    "1.0.0": "2016-11-05T17:58:58.723Z",
    "1.0.1": "2017-07-18T14:50:49.046Z",
    "1.0.2": "2018-04-18T17:12:18.236Z",
    "1.0.3": "2019-05-08T07:37:30.033Z",
    "1.0.4": "2020-01-24T10:41:22.995Z",
    "2.0.0": "2021-03-27T09:22:31.794Z",
    "2.0.1": "2021-11-07T10:40:35.687Z"
  },
  "readmeFilename": "readme.md",
  "contributors": [
    {
      "name": "Titus Wormer",
      "email": "tituswormer@gmail.com",
      "url": "https://wooorm.com"
    }
  ],
  "homepage": "https://github.com/wooorm/fault#readme"
}