Errors
Errors

Overview

A simple utility for handling errors in a more ergonomic way.

npm versionnpm downloadsBundlephobia

Installation

# npm
npm i --save @weser/errors

# yarn
yarn add @weser/errors

# pnpm
pnpm add @weser/layers

Motivation

I use the invariant pattern a lot in my code and thus I wanted to quickly publish it somewhere.
Nothing fancy and probably available in other packages as well.
I might add more helpers in the future.

On this page