@endo/check-bundle
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

check-bundle

checkBundle verifies the integrity of a bundle, inspects all of its internal hashes and its one external hash. checkBundle verifies the internal consistency, completeness, coherence, and conciseness (no extra files) of the bundle. The function returns a rejected promise if the bundle fails the check.

const bundle = await bundleSource('path/to/bundle.js');
// 'bundle' is JSON-serializable
await checkBundle(bundle);

This must be run in an Endo environment. To run on Node.js, import @endo/init before importing @endo/import-bundle.

Dependencies (3)

Dev Dependencies (13)

Package Sidebar

Install

npm i @endo/check-bundle

Weekly Downloads

1,658

Version

1.0.6

License

Apache-2.0

Unpacked Size

22.9 kB

Total Files

11

Last publish

Collaborators

  • mhofman
  • kriskowal
  • michaelfig
  • erights
  • warner