wasm-lz-string
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

wasm-lz-string

🚴 Usage

🐑 Use npm or yarn to install package

npm install wasm-lz-string --save
# Or use yarn
yarn add wasm-lz-string

📖 Import the package on nodejs

const LzString = require('wasm-lz-string')

// decode_base64: (source: string): string
LzString.decode_base64('BIUwNmD2A0AEDukBOYAmBCIA'); // Hello, world!

🍔 Devlopment

🛠️ Build with wasm-pack build

wasm-pack build --target nodejs
# ⬆️ Just build for cjs, you can build for esm ⬇️
wasm-pack build

The pkg directory is the package directory

🔋 Batteries Included

  • wasm-bindgen for communicating between WebAssembly and JavaScript.
  • lz_string implementation of lz-string decompression

Readme

Keywords

none

Package Sidebar

Install

npm i wasm-lz-string

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

29.4 kB

Total Files

6

Last publish

Collaborators

  • chantzekin