yolkwasm
v1.1.1
Published
load the shell shockers webassembly library in your bun project!
Downloads
537
Maintainers
Readme
note: while Node should work, compatibility is not guaranteed
import WASM from 'yolkwasm';
const wasm = new WASM();
await wasm.initWasm();
// validate stuff for the matchmaker
const validated = wasm.validate('some input string');
console.log('validated string:', validated);
// decode the JS
const jsReq = await fetch('https://shellshock.io/js/shellshock.js');
const theJS = await jsReq.text();
const processed = await wasm.process(theJS);
console.log('processed js:', processed.slice(0, 100), '...');
// get coords string for yaw 1.5, pitch 0.3
console.log(wasm.coords(1.5, 0.3));a lot of other stuff is exposed, just read the library 😭 it's one file
