UNPKG

@simbo/user-facing-error

Version:

A custom Error class for creating user-facing error messages with an optional hint to guide users toward resolving issues.

66 lines 1.85 kB
{ "name": "@simbo/user-facing-error", "description": "A custom Error class for creating user-facing error messages with an optional hint to guide users toward resolving issues.", "version": "1.0.2", "keywords": [ "error", "error-handling", "user", "user-facing", "user-friendly", "message", "hint", "exception", "wrap", "utility", "typescript" ], "author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)", "license": "MIT", "homepage": "http://github.com/simbo/packages/tree/main/packages/user-facing-error", "repository": "github:simbo/packages", "bugs": "https://github.com/simbo/packages/issues", "engines": { "node": ">=20" }, "type": "module", "exports": { ".": "./dist/index.js" }, "files": [ "CHANGELOG.md", "dist", "LICENSE.md", "README.md" ], "dependencies": { "@simbo/stringify-error": "1.0.2" }, "devDependencies": { "@ianvs/prettier-plugin-sort-imports": "^4.6.2", "@types/node": "^20.19.11", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "eslint": "^9.34.0", "jiti": "^2.5.1", "prettier": "^3.6.2", "prettier-plugin-organize-attributes": "^1.0.0", "typescript": "^5.9.2", "vitest": "^3.2.4", "@simbo/eslint-config": "1.0.3", "@simbo/prettier-config": "1.0.4", "@simbo/tsconfig": "1.0.4" }, "scripts": { "build": "tsc --project tsconfig.build.json", "check:eslint": "eslint --config ./eslint.config.ts --max-warnings 0", "check:format": "prettier --check .", "check:types": "tsc --noEmit", "clean:dist": "rm -rf dist", "fix:eslint": "pnpm run check:eslint --fix", "fix:format": "prettier --write .", "test": "vitest run --coverage", "test:ui": "pnpm run test:watch --ui", "test:watch": "vitest dev --coverage" } }