- 🌟 A WebAssembly implementation of
lz-string
decompression - 🔋 Use rust crate
lz_string
- 📦 Build with
wasm-pack
npm install wasm-lz-string --save
# Or use yarn
yarn add wasm-lz-string
const LzString = require('wasm-lz-string')
// decode_base64: (source: string): string
LzString.decode_base64('BIUwNmD2A0AEDukBOYAmBCIA'); // Hello, world!
wasm-pack build --target nodejs
# ⬆️ Just build for cjs, you can build for esm ⬇️
wasm-pack build
The pkg
directory is the package directory
-
wasm-bindgen
for communicating between WebAssembly and JavaScript. -
lz_string
implementation of lz-string decompression