- TypeScript 88.8%
- JavaScript 11.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Publish / publish (push) Successful in 21s
|
||
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| ant.lockb | ||
| eslint.config.ts | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
Features
A ton of tweaks is applied to the bundle made by wasm-pack.
package.jsongenerated usingCargo.tomlproperties- Embedded WASM in the bundle so need to
init()anything - Simplified
d.tsand less noise
Requirements
You should have the following tools globally available.
Usage
You can either use this package through its own registry or through ants.land.
# you should configure `@mentor` registry.
npx @mentor/wasm
bun x @mentor/wasm
# it is published on `ants.land` officially.
ant x @mentor/wasm
You should see the final results in an exported directory.
You can publish this directory to any registry as a package.
Keys in Cargo.toml
You can customize the output by updating your Cargo.toml of your WASM crate.
[package.metadata.npm]
name = "@unilim/cas" # name of your package
features = ["npm"] # cargo features enabled when compiling the wasm crate
If you're using external npm dependencies you can also define them here.
[package.metadata.npm.dependencies]
"@unilim/cas" = "^3.0.0"