# @endo/lockdown

> Wrappers for hardening JavaScript for Endo

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

## Install

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

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.19 |
| Published | 2026-04-16 |
| First published | 2022-01-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1054 |
| Author | Agoric |
| Maintainers | kriskowal, michaelfig, erights, warner, mhofman, boneskull, naugtur, turadga |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.19 (latest) — 2026-04-16
- 1.0.18 — 2025-07-12
- 1.0.17 — 2025-06-17
- 1.0.16 — 2025-06-02
- 1.0.15 — 2025-03-24
- 1.0.14 — 2025-01-24
- 1.0.13 — 2024-11-13
- 1.0.12 — 2024-10-22
- 1.0.11 — 2024-10-10
- 1.0.10 — 2024-08-27
- 1.0.9 — 2024-08-01
- 1.0.8 — 2024-07-30
- 1.0.7 — 2024-05-07
- 1.0.6 — 2024-04-04
- 1.0.5 — 2024-03-20
- … 35 more at https://npm.io/package/@endo/lockdown/versions

## README

# `@endo/lockdown`

We often need to upgrade a JavaScript environment to HardenedJS as a side
effect of importing a module, so that later modules can rely on the hardened
environment.
The `@endo/lockdown` package simply ensures that SES has both initialized
and locked down the environment.

```js
import '@endo/lockdown'
import 'hardened-modules...';
```

The HardenedJS environment is a subset of the Endo environment.
Use [`@endo/init`](../init) for a more comprehensive upgrade.

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