
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@leonardoraele/err
Advanced tools
npm install @leonardoraele/err
import { Err } from '@leonardoraele/err';
new Err('This is an error')
.with({ context: 'Add JSON data this way' }) // Use `.with()` to add content information tot he error
.causes('Another error') // Use `.causes()` to create a new error that has `this` error as a
// cause. When the new error is stringified (e.g. in the console),
// the cause will be displayed in a separated.
.throw(); // Use `throw()` to throw the error in an expression instead of
// requiring a dedicated statement.
Output in Node 23:
Uncaught:
Err [Error]: Another error
at ... {
details: undefined,
[cause]: Err [Error]: This is an error
at ... {
details: { context: 'Add JSON data this way' }
}
}
FAQs
A simple error class with support for adding context data
We found that @leonardoraele/err demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.