{"library":"fejl","type":"library","category":null,"description":"Fejl is a JavaScript and TypeScript utility library designed to streamline the creation and management of custom error classes in Node.js applications. Currently in its stable v4.0.1 release, Fejl offers a predictable release cadence with major versions typically introducing significant changes like ESM support or Node.js version bumps. Its core functionality revolves around `MakeErrorClass`, which allows developers to define custom error types with default messages and properties, drastically reducing boilerplate compared to native `Error` extension. Key differentiators include static `assert` and `makeAssert` methods for concise conditional error throwing, and a collection of pre-defined HTTP error classes. Fejl aims to improve code readability and maintainability by centralizing error definitions and providing convenient assertion patterns.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install fejl","imports":["import { MakeErrorClass } from 'fejl'","import { NotFound } from 'fejl'","class MyCustomError extends MakeErrorClass('Default Message') {}"]},{"cmd":"yarn add fejl","imports":[]},{"cmd":"pnpm add fejl","imports":[]}],"homepage":"https://fejl.misery.dev","github":"https://github.com/jeffijoe/fejl","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fejl","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/fejl/compatibility"}}