Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 361 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 361 Bytes

Getting started

cargo install wasm-pack
wasm-pack build --target web
npm init wasm-app my-web-app

Then in the index.js of this template, you may start using the wasm stuff:

import init, { chittify } from '../pkg/chitter.js';

await init(); // MAKE SURE TO INITIALIZE!
console.log(chittify('some string'));