LinuxCommandLibrary

jco

JavaScript tooling for WebAssembly Components

TLDR

Transpile WASM component

$ jco transpile [component.wasm] -o [output/]
copy
Create component from module
$ jco componentize [module.wasm] -o [component.wasm]
copy
Inspect component
$ jco print [component.wasm]
copy
Run component
$ jco run [component.wasm]
copy
Generate types
$ jco types [component.wasm] -o [types/]
copy

SYNOPSIS

jco command [options] file

DESCRIPTION

jco is JavaScript tooling for WebAssembly Components. It transpiles WASM components to JavaScript for browser/Node.js use.
The tool works with the component model standard. It generates JavaScript bindings and TypeScript definitions.

PARAMETERS

transpile FILE

Convert to JavaScript.
componentize FILE
Create component from core module.
print FILE
Print component info.
run FILE
Execute component.
types FILE
Generate TypeScript types.
-o DIR
Output directory.
--help
Display help information.

CAVEATS

Experimental WASM standard. Bytecode Alliance project. Node.js tool.

HISTORY

jco was created by the Bytecode Alliance as JavaScript tooling for the WebAssembly Component Model standard.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community