@jitl/quickjs-node-esm-debug-sync-wasm
TypeScript icon, indicating that this package has built-in type declarations

0.25.0-rc.0 • Public • Published

@jitl/quickjs-node-esm-debug-sync-wasm

Node.js ESModule

This generated package is part of quickjs-emscripten. It contains a variant of the quickjs WASM library, and can be used with quickjs-emscripten-core.

import variant from "@jitl/quickjs-node-esm-debug-sync-wasm"
import { newQuickJSWASMModuleFromVariant } from "quickjs-emscripten-core"
const QuickJS = await newQuickJSWASMModuleFromVariant(variant)

This variant was built with the following settings:

Library: quickjs

The original bellard/quickjs library.

Release mode: debug

Enables assertions and memory sanitizers. Try to run your tests against debug variants, in addition to your preferred production variant, to catch more bugs.

Module system: esm

This variant exports an ESModule, which is standardized for browsers and more modern browser-like environments. It cannot be imported from CommonJS without shenanigans.

Extra async magic? No

The default, normal build. Note that both variants support regular async functions.

Single-file, or separate .wasm file? wasm

Has a separate .wasm file. May offer better caching in your browser, and reduces the size of your JS bundle. If you have issues, try a 'singlefile' variant.

More details

Full variant JSON description:

{
  "library": "quickjs",
  "releaseMode": "debug",
  "syncMode": "sync",
  "emscriptenInclusion": "wasm",
  "description": "Node.js ESModule",
  "emscriptenEnvironment": ["node"],
  "moduleSystem": "esm"
}

Variant-specific Emscripten build flags:

[
  "-O0",
  "-DQTS_DEBUG_MODE",
  "-gsource-map",
  "-s ASSERTIONS=1",
  "-s EXPORT_ES6=1",
  "-s ENVIRONMENT=node",
  "-DQTS_SANITIZE_LEAK",
  "-fsanitize=leak",
  "-g2",
  "-s ASYNCIFY_ADVISE=1",
  "-O3"
]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.25.0-rc.22next
0.25.0-rc.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.25.0-rc.22
0.25.0-rc.11
0.25.0-rc.01

Package Sidebar

Install

npm i @jitl/quickjs-node-esm-debug-sync-wasm

Weekly Downloads

4

Version

0.25.0-rc.0

License

none

Unpacked Size

1.21 MB

Total Files

12

Last publish

Collaborators

  • jitl