Layerr: Error Wrapping Utility
JSON →Layerr is a lightweight, dependency-free error wrapping utility for both Node.js and browser environments, designed to enhance error handling in complex applications. Currently at version 3.0.0, it provides a structured way to chain errors, attach arbitrary contextual information, and rename error types dynamically. Layerr is based on the concepts of `VError` but significantly lighter, stripping away Node.js core utility dependencies to ensure better browser compatibility and smaller bundle sizes. It is written in TypeScript and compiled to JavaScript, making it suitable for modern development workflows. The package maintains an active release cadence, focusing on stability and minimal overhead, differentiating itself by its lean design, ESM-only distribution (since v3), and strong TypeScript support for improved developer experience.
Traffic · last 30 days ↑150% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany · 🇫🇷 France