deno_brotli:rot Brotli wasm模块用于deno

时间:2021-05-23 00:34:22
【文件属性】:
文件名称:deno_brotli:rot Brotli wasm模块用于deno
文件大小:844KB
文件格式:ZIP
更新时间:2021-05-23 00:34:22
compression brotli deno TypeScript deno_brotli 该模块通过使用编译为webassembly的提供为deno和web提供支持。 用法 压缩 import { compress } from "https://deno.land/x/brotli/mod.ts" ; const text = new TextEncoder ( ) . encode ( "X" . repeat ( 64 ) ) ; console . log ( text . length ) ; // 64 Bytes console . log ( compress ( text ) . length ) ; // 10 Bytes 减压 import { decompress } from "https://deno.land/x/brotli/mod.ts" ; const comp
【文件预览】:
deno_brotli-master
----test_deps.ts(153B)
----.gitignore(52B)
----test.ts(791B)
----bench.ts(671B)
----README.md(2KB)
----CHANGELOG.md(3KB)
----.github()
--------workflows()
--------FUNDING.yml(45B)
----Cargo.toml(475B)
----.vscode()
--------settings.json(76B)
----LICENSE(1KB)
----src()
--------lib.rs(1KB)
----wasm.js(1.31MB)
----scripts()
--------_util.ts(948B)
--------fmt.ts(499B)
--------_deps.ts(334B)
--------clean.ts(428B)
--------lint.ts(514B)
--------build.ts(2KB)
----mod.ts(1KB)
----.editorconfig(99B)
----Cargo.lock(4KB)
----bench_deps.ts(164B)

网友评论