{"_id":"@carthage-js/graou","_rev":"4-545f23d117d12d118017b64fa832dddf","name":"@carthage-js/graou","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@carthage-js/graou","version":"1.0.0","keywords":["errors","exceptions","design-pattern"],"author":{"name":"ZephyrDevelop"},"license":"MIT","_id":"@carthage-js/graou@1.0.0","maintainers":[{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"}],"homepage":"https://github.com/carthage-js/graou#readme","bugs":{"url":"https://github.com/carthage-js/graou/issues"},"dist":{"shasum":"12b8dd0938c85770212cb47fb4c85007663feee0","tarball":"https://registry.npmjs.org/@carthage-js/graou/-/graou-1.0.0.tgz","fileCount":33,"integrity":"sha512-EQyYJKEqsDWK+ILxPJy93GMUxypycVSXHMvHOk5vlcJst+NZqbDrdtAEdfljiO4WjW1uKOY7//UYg4R2qn18kg==","signatures":[{"sig":"MEQCIHTigBJGunsiz4sO3MiIJfFkCGiuAdk2+7d9XJxml/FPAiBMe72kovHhoj5jmwcFdxG/5LO7Pqwd/ToSgbA6yr6z2w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21034},"main":"dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"8b6550db201886e44472381b8c239e7fcf892360","scripts":{"fmt":"oxfmt","lint":"oxlint","test":"jest","build":"rm -rf ./dist/ && tsc && tsc-alias","prepack":"npm run build","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check"},"_npmUser":{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"},"repository":{"url":"git+https://github.com/carthage-js/graou.git","type":"git"},"_npmVersion":"11.16.0","description":"Avoid wolf in code with this library to design better error management.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.4.2","oxfmt":"^0.64.0","oxlint":"^1.79.0","ts-jest":"^29.4.12","ts-node":"^10.9.2","ts-loader":"^9.6.2","tsc-alias":"^1.9.2","typescript":"^6.0.3","@types/jest":"^30.0.0","oxlint-tsgolint":"^7.0.2001"},"_npmOperationalInternal":{"tmp":"tmp/graou_1.0.0_1787257796962_0.9184722285041074","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@carthage-js/graou","version":"1.0.1","keywords":["errors","exceptions","design-pattern"],"author":{"name":"ZephyrDevelop"},"license":"MIT","_id":"@carthage-js/graou@1.0.1","maintainers":[{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"}],"homepage":"https://github.com/carthage-js/graou#readme","bugs":{"url":"https://github.com/carthage-js/graou/issues"},"dist":{"shasum":"a2c73c5091f98187134a515e215a13b22914c69f","tarball":"https://registry.npmjs.org/@carthage-js/graou/-/graou-1.0.1.tgz","fileCount":29,"integrity":"sha512-W+RjgGMDyGbo/7TR8gLTVwtdfTPKViN0UTzBXr3emBaqHvaeM7pi2X0TiCFjE7TMAgD55o60FJ4rtPZn25WjCQ==","signatures":[{"sig":"MEQCIDZsgdO6Z7ivSQ4sdGgZzFRkB2S/NnM/6V9T0ZlnEUQzAiA5MuZ3eyJUMNQGh5IMIRnScZ+cdIbvQmHeXLd/ycUMPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@carthage-js%2fgraou@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16303},"main":"dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"f26657c6ab8b8b1a985083b2f545b4721bd2fb51","scripts":{"fmt":"oxfmt","lint":"oxlint","test":"jest","build":"rm -rf ./dist/ && tsc && tsc-alias","prepack":"npm run build","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4c76184a-cdbe-45eb-b2b5-4fd3798d8c28"}},"repository":{"url":"git+https://github.com/carthage-js/graou.git","type":"git"},"_npmVersion":"11.17.0","description":"Avoid wolf in code with this library to design better error management.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.4.2","oxfmt":"^0.64.0","oxlint":"^1.79.0","ts-jest":"^29.4.12","ts-node":"^10.9.2","ts-loader":"^9.6.2","tsc-alias":"^1.9.2","typescript":"^6.0.3","oxlint-tsgolint":"^7.0.2001"},"_npmOperationalInternal":{"tmp":"tmp/graou_1.0.1_1787779638332_0.7726401708134332","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@carthage-js/graou","version":"1.1.0","keywords":["errors","exceptions","design-pattern"],"author":{"name":"ZephyrDevelop"},"license":"MIT","_id":"@carthage-js/graou@1.1.0","maintainers":[{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"}],"homepage":"https://github.com/carthage-js/graou#readme","bugs":{"url":"https://github.com/carthage-js/graou/issues"},"dist":{"shasum":"c5931757b349e5b871702062ce6fb5aa810bae6f","tarball":"https://registry.npmjs.org/@carthage-js/graou/-/graou-1.1.0.tgz","fileCount":43,"integrity":"sha512-OaOwOwBupTKaAYQG3XN9BSJCJNVdfgeSfVya4eFKgeCu/DS2744fc5U7eyIIafrX3MzW1TFCZvvk2bZ4fKbalA==","signatures":[{"sig":"MEUCIHI7zUQWCece/TyOLtGVb9Y1ZLkau0UTFvM4PSz5LTWoAiEAl/FyUikjbIIsW+ESSo6Z8qkU6khJUrhbMxq1bRrLEPM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@carthage-js%2fgraou@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25364},"main":"dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"45b7b4c67779f69b40b9fd006da6506155b093ab","scripts":{"fmt":"oxfmt","lint":"oxlint","test":"jest","build":"rm -rf ./dist/ && tsc && tsc-alias","prepack":"npm run build","lint:fix":"oxlint --fix","fmt:check":"oxfmt --check","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4c76184a-cdbe-45eb-b2b5-4fd3798d8c28"}},"repository":{"url":"git+https://github.com/carthage-js/graou.git","type":"git"},"_npmVersion":"11.17.0","description":"Avoid wolf in code with this library to design better error management.","directories":{},"_nodeVersion":"24.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.4.2","oxfmt":"^0.64.0","oxlint":"^1.79.0","ts-jest":"^29.4.12","ts-node":"^10.9.2","ts-loader":"^9.6.2","tsc-alias":"^1.9.2","typescript":"^6.0.3","oxlint-tsgolint":"^7.0.2001"},"_npmOperationalInternal":{"tmp":"tmp/graou_1.1.0_1787997244134_0.03597785667012965","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@carthage-js/graou","version":"1.2.0","description":"Avoid wolf in code with this library to design better error management.","keywords":["errors","exceptions","design-pattern"],"homepage":"https://github.com/carthage-js/graou#readme","bugs":{"url":"https://github.com/carthage-js/graou/issues"},"repository":{"type":"git","url":"git+https://github.com/carthage-js/graou.git"},"license":"MIT","author":{"name":"ZephyrDevelop"},"type":"commonjs","main":"dist/index.js","scripts":{"prepack":"npm run build","build":"rm -rf ./dist/ && tsc && tsc-alias","test":"jest","test:coverage":"jest --coverage","lint":"oxlint","lint:fix":"oxlint --fix","fmt":"oxfmt","fmt:check":"oxfmt --check"},"devDependencies":{"jest":"^30.4.2","oxfmt":"^0.64.0","oxlint":"^1.79.0","oxlint-tsgolint":"^7.0.2001","ts-jest":"^29.4.12","ts-loader":"^9.6.2","ts-node":"^10.9.2","tsc-alias":"^1.9.2","typescript":"^6.0.3"},"gitHead":"2fe6cae12053bbf719ece12e787448a15914e08d","types":"./dist/index.d.ts","_id":"@carthage-js/graou@1.2.0","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-wNuj+ir+C9WKo002J1BNgPBYrSUa4CCYEusTHLdVzK/tWU9nwkR6DYXc6tSzGU0x7/pQvT2zepIVTy5D6qYipQ==","shasum":"ddb6fa3a682dedb423a2b00535d2f92ec5f36de7","tarball":"https://registry.npmjs.org/@carthage-js/graou/-/graou-1.2.0.tgz","fileCount":51,"unpackedSize":34227,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@carthage-js%2fgraou@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAntAT7NWcHubwtLpGhStMAzeGdH+79G8vQdLrGpGwE3AiEAktzZSM4Acdb1vYDWlILapARTB2fdWY/jD0u7ESYnY9E="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:4c76184a-cdbe-45eb-b2b5-4fd3798d8c28"}},"directories":{},"maintainers":[{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/graou_1.2.0_1789425865070_0.7384856835817788"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-20T20:29:56.778Z","modified":"2026-09-14T22:44:25.537Z","1.0.0":"2026-08-20T20:29:57.147Z","1.0.1":"2026-08-26T21:27:18.465Z","1.1.0":"2026-08-29T09:54:04.288Z","1.2.0":"2026-09-14T22:44:25.207Z"},"bugs":{"url":"https://github.com/carthage-js/graou/issues"},"author":{"name":"ZephyrDevelop"},"license":"MIT","homepage":"https://github.com/carthage-js/graou#readme","keywords":["errors","exceptions","design-pattern"],"repository":{"type":"git","url":"git+https://github.com/carthage-js/graou.git"},"description":"Avoid wolf in code with this library to design better error management.","maintainers":[{"name":"zephyrdevelop","email":"desrumaux.matthias.pro@gmail.com"}],"readme":"# Graou\n\n[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=carthage-js_graou)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=coverage)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=bugs)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=carthage-js_graou&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n\n[![SonarQube Cloud](https://sonarcloud.io/images/project_badges/sonarcloud-highlight.svg)](https://sonarcloud.io/summary/new_code?id=carthage-js_graou)\n\n## 🐺 What is Graou?\n\nGraou is a lightweight TypeScript library that aims to provide a clean, structured, and reusable approach\nto creating and managing application errors instead of handling exceptions in an inconsistent way throughout the codebase.\n\n> [!NOTE]\n> Check our examples to see our way to use it 😀\n> [examples](https://github.com/carthage-js/graou/tree/main/examples)\n\n## How to use ? (Quickstart)\n\n> [!NOTE]\n> We got a [⭐ wiki ⭐](https://carthage-js.github.io/graou/) that go deeper in the explaination.\n\n```javascript\nconst graou = require(\"@carthage-js/graou\");\n\nconst errorsFactory = graou.makeModuleErrorsFactory({\n  moduleName: \"<SHOULD REFERE TO YOUR name FIELD OF package.json>\",\n});\n\n\nconst errors = errorsFactory(\"<SCOPE NAME>\", [\"<CODE NAME>\", \"<OTHER CODE NAME>\"]);\n\n// Use errors like that:\nthrow errors.codes.<CODE NAME>.factory(\"<YOUR REASON>\");\nthrow errors.codes.<CODE NAME>.factory(\"<YOUR REASON>\", { cause: \"<PASS THE PARENT EXCEPTION HERE>\" })\n```\n","readmeFilename":"README.md"}