fastlz.js 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
fastlz.js 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
fastlz.js 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 C/C++
操作系统 跨平台
软件类型 开源软件
所属分类 程序开发压缩算法
开源组织
地区 国产
适用人群 未知
收录时间 2020-09-30

软件简介

js的压缩/解压缩算法,可在浏览器和node上使用。

install

npm install fastlz.js

example

var fs   = require("fs");
var path = "./need.js";
var data = fs.readFileSync(path);

setTimeout(function () {
	var decoder = new FastLZDecoder();
	var test = new Uint8Array(data);
	var buffer  = decoder.encode(test);
	var start = 2650074;
	var end   = start+ 30;
	var buffer2  = decoder.decode(new Uint8Array(buffer));
	fs.writeFileSync("invalidate.js", buffer2);
	fs.writeFileSync("compress.js", buffer);
}, 500);

it always run powerful.

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
4 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部