From 7c7b42ab68482c46fa3076cc33ef0bd1bd553319 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Tue, 3 Mar 2026 17:45:42 +0000 Subject: [PATCH] chore: fix pkg name in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eac336f..743e4fa 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,13 @@ and this module encapsulates the common boilerplate into a simple, reusable API. ## Install ``` -npm install typed-error-class +npm install custom-error-creator ``` ## Quick start ```typescript -import { createErrorClass } from "typed-error-class"; +import { createErrorClass } from "custom-error-creator"; const NotFound = createErrorClass({ code: "NOT_FOUND", @@ -67,7 +67,7 @@ const ValidationError = createErrorClass({ Creates multiple error classes at once, returned as an object keyed by code. ```typescript -import { createErrorClassesByCode } from "typed-error-class"; +import { createErrorClassesByCode } from "custom-error-creator"; const errors = createErrorClassesByCode([ { code: "NOT_FOUND", message: "Resource {resource} not found", status: 404 }, @@ -90,7 +90,7 @@ Creates multiple error classes at once, returned as an object keyed by PascalCase name. ```typescript -import { createErrorClassesByName } from "typed-error-class"; +import { createErrorClassesByName } from "custom-error-creator"; const errors = createErrorClassesByName([ { code: "NOT_FOUND", message: "Resource {resource} not found", status: 404 },