
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@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
The npm package @leonardoraele/err receives a total of 10 weekly downloads. As such, @leonardoraele/err popularity was classified as not popular.
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
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.