npm.io
1.0.19 • Published 4 months ago

@endo/lockdown

Licence
Apache-2.0
Version
1.0.19
Deps
1
Size
28 kB
Vulns
0
Weekly
0
Stars
1.0K

@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.

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

The HardenedJS environment is a subset of the Endo environment. Use @endo/init for a more comprehensive upgrade.