
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
js-component-tools
Advanced tools
JS-compiled CLI & API versions of some of [wasm-tools](https://github.com/bytecodealliance/wasm-tools), [wit-bindgen host js](https://github.com/bytecodealliance/wit-bindgen/tree/main/crates/gen-host-js) and [binaryen opt & wasm2asm](https://npmjs.org/pac
JS-compiled CLI & API versions of some of wasm-tools, wit-bindgen host js and binaryen opt & wasm2asm.
Note: This is an experimental prototype without any maintenance guarantees.
npm install -g js-component-tools
The CLI is then available via the jsct --help
command.
Usage: jsct <command> [options]
WebAssembly Component Tools
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
wit [options] <component-path> [wasm2wit] decode the world WIT for a WebAssembly Component
host [options] <component-path> [wit-bindgen host js] host a WebAssembly component for JavaScript execution
opt [options] <component-file> optimizes a Wasm component, including running wasm-opt Binaryen optimizations
print [options] <input> [wasm-tools print] prints the WebAssembly binary textual form
parse [options] <input> [wasm-tools parse] parses the Wasm text format
help [command] display help for command
npm install js-component-tools
import { host } from 'js-component-tools';
import { readFile } from 'fs/promises';
const component = await readFile('./component.wasm');
const compiledFiles = await host(component, { optimize: true, minify: true });
FAQs
JavaScript tooling for working with WebAssembly Components
The npm package js-component-tools receives a total of 5 weekly downloads. As such, js-component-tools popularity was classified as not popular.
We found that js-component-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.