incident is a simple Node and browser library to facilitate the creation of custom errors to help with programmatic error handling by assigning unique names and data objects to errors.

It greatly helps with error creation but consumption could be improved.

The code is relatively short but I am pretty happy with it: it provides a flexible API with mostly lazy computations to reduce overhead.