@mentor/wasm (1.3.0)

Published 2026-08-31 23:12:31 +00:00 by Mikkel ALMONTE--RINGAUD in mentor/wasm

Installation

@mentor:registry=
npm install @mentor/wasm@1.3.0
"@mentor/wasm": "1.3.0"

About this package

Features

A ton of tweaks is applied to the bundle made by wasm-pack.

  • package.json generated using Cargo.toml properties
  • Embedded WASM in the bundle so need to init() anything
  • Simplified d.ts and 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"

Dependencies

Dependencies

ID Version
esbuild ^0.28.2

Development dependencies

ID Version
@types/node ^26.4.0
@typescript/native npm:typescript@^7.0.2
@vexcited/eslint-config ^0.3.0
eslint ^10.8.0
smol-toml ^1.8.0
tsdown ^0.22.12
typescript npm:@typescript/typescript6@^6.0.2
Details
npm
2026-08-31 23:12:31 +00:00
5
Mikkel ALMONTE--RINGAUD
MIT
latest
7.8 KiB
Assets (1)
wasm-1.3.0.tgz 7.8 KiB
Versions (5) View all
1.3.0 2026-08-31
1.2.0 2026-08-10
1.1.0 2026-07-27
1.0.0 2026-07-21
0.1.0 2026-07-20