# @endo/errors

> Package exports of the `assert` global

Latest version **1.3.1** (published 2026-04-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @endo/errors
pnpm add @endo/errors
yarn add @endo/errors
bun add @endo/errors
```

## Health

**Score 55/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2026-04-17 |
| First published | 2023-09-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1054 |
| Author | Endo contributors |
| Maintainers | kriskowal, michaelfig, erights, warner, mhofman, boneskull, naugtur, turadga |

## Links

- npm: https://www.npmjs.com/package/@endo/errors
- Repository: https://github.com/endojs/endo
- Homepage: https://github.com/endojs/endo/tree/master/packages/errors#readme
- Issues: https://github.com/endojs/endo/issues
- npm.io page: https://npm.io/package/@endo/errors

## Dependencies (2)

- [ses](https://npm.io/package/ses.md) ^2.0.0
- [@endo/harden](https://npm.io/package/@endo/harden.md) ^1.1.0

## Recent versions

- 1.3.1 (latest) — 2026-04-17
- 1.3.0 — 2026-02-26
- 1.2.13 — 2025-07-12
- 1.2.12 — 2025-06-17
- 1.2.11 — 2025-06-02
- 1.2.10 — 2025-03-24
- 1.2.9 — 2025-01-24
- 1.2.8 — 2024-11-13
- 1.2.7 — 2024-10-22
- 1.2.6 — 2024-10-10
- 1.2.5 — 2024-08-27
- 1.2.4 — 2024-08-01
- 1.2.3 — 2024-07-30
- 1.2.2 — 2024-05-07
- 1.2.1 — 2024-04-04
- … 7 more at https://npm.io/package/@endo/errors/versions

## README

# `@endo/errors`

When host and guest programs share a JavaScript context, there is some risk that
the guest will call a host function and induce it to throw an exception that
inadvertently reveals information about its internal state to the guest.
It is similarly possible that a guest would inadvertently reveal information to
a cotenant guest.

For this reason, the `@endo/errors` package provides utilities for constructing
errors with redacted messages.
In coordination with [ses](../ses/) in the host realm, the information
redacted by these utilities will be revealed to the realm's console for use
in debugging, but be invisible to code that catches them.

---
_Source: https://npm.io/package/@endo/errors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
