更新readme
parent
23ec59a206
commit
c95d5a595d
|
@ -1,6 +1,11 @@
|
||||||
## @bytedo/gzip
|
## @bytedo/gzip
|
||||||
> 浏览器端的gzip库, fork于[pako](https://github.com/nodeca/pako), 仅调整语法为esm, 并只保留gzip的导出。
|
> 浏览器端的gzip库, fork于[pako](https://github.com/nodeca/pako), 仅调整语法为esm, 并只保留gzip的导出。
|
||||||
|
|
||||||
|
### 版本同步状态:
|
||||||
|
|
||||||
|
pako: 
|
||||||
|
@bytedo/gzip: 
|
||||||
|
|
||||||
|
|
||||||
### 安装&使用
|
### 安装&使用
|
||||||
|
|
||||||
|
@ -20,7 +25,7 @@ import { gzip , ungzip } from '//jscdn.ink/@bytedo/gzip/latest/index.js'
|
||||||
|
|
||||||
let res = gzip('hello world') // return Uint8Array object
|
let res = gzip('hello world') // return Uint8Array object
|
||||||
|
|
||||||
let txt = ungzip(res) // hello world
|
let txt = ungzip(res) // return Uint8Array object
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue