1.0.0 • Published 4 years ago
as-pak v1.0.0
ASpack
Pack/Unpack AssemblyScript WASM Binaries In Pure JavaScript
About
- Pure JavaScript 💪
- Works In The Browser 📢
- Much Faster Than Gzip 👌
- Compress WASM Binaries 🎯
Installation
~ npm i as-pak
Usage
const fs = require('fs')
const loader = require('@assemblyscript/loader')
const { pack, unpack } = require('as-pak')
const unpacked = unpack(fs.readFileSync('./optimized.aspack'))
const wasm = loader.instantiateSync(unpacked, {})
module.exports = wasm.exports
CLI
Compress
aspack pack in.wasm -o out.aspack
Uncompress
aspack unpack in.aspack -o out.wasm
1.0.0
4 years ago