@w5/xxhash3-wasm

0.0.6 • Public • Published

@rmw/utf8

wasm wrapper for xxhash3-wasm

see https://lib.rs/crates/xxhash3-wasm

xxhash3-wasm

Short text compression algorithm for utf-8 (optimized for Chinese , developed based on rust programming language).

面向utf-8的短文本压缩算法(为中文压缩优化,基于rust编程语言开发)。

安装

yarn add @rmw/utf8

或者

npm install @rmw/utf8

使用

#!/usr/bin/env coffee

import {encode, encode_bin, decode} from './pkg'

t = encode 'test'
console.log t
console.log decode t

t = encode_bin Buffer.from('test')
console.log t
console.log decode t

关于

本项目隶属于人民网络(rmw.link) 代码计划。

人民网络

Readme

Keywords

none

Package Sidebar

Install

npm i @w5/xxhash3-wasm

Weekly Downloads

2

Version

0.0.6

License

Apache-2.0

Unpacked Size

25.4 kB

Total Files

7

Last publish

Collaborators

  • i-user