
Product
A New Design for GitHub PR Comments
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
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 24 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.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.
Security News
Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.