@datawallet/wasm-flate

This a fork of drbh/wasm-flate

Usage no npm install needed!

<script type="module">
  import datawalletWasmFlate from 'https://cdn.skypack.dev/@datawallet/wasm-flate';
</script>

README

πŸ—œοΈβš‘ wasm-flate

This a fork of drbh/wasm-flate

npm version

The fastest compression and decompression in the browser.

Installation

Using YARN

yarn add @datawallet/wasm-flate

Resources

Docs - get API reference and flate functions.

Building with Rust πŸ¦€πŸ•ΈοΈ

In order to build the wasm files with Rust, you'll need to clone the repo and run wasm-pack with bundler as the target. This will create a set of files in pkg that can be used as webpack package.

git clone https://github.com/datawallet/wasm-flate.git
cd wasm-flate
yarn build

You should have the following new files

pkg/
β”œβ”€β”€ LICENSE-APACHE
β”œβ”€β”€ LICENSE-MIT
β”œβ”€β”€ README.md
β”œβ”€β”€ wasm-flate.d.ts
β”œβ”€β”€ wasm-flate.js
β”œβ”€β”€ wasm-flate_bg.d.ts
β”œβ”€β”€ wasm-flate_bg.js
β”œβ”€β”€ wasm-flate_bg.wasm
└── package.json

Publish

wasm-pack login
yarn build
wasm-pack publish

Donate to @drbh here

If you found wasm-flate useful feel free to buy @drbh a beer 🍺 or two πŸ˜€ here: https://github.com/drbh/wasm-flate#donate-here