LzwCompress.js
Lossless LZW compression/decompression implemented in JavaScript for strings/JSON/JS objects.
Install / Use
/learn @floydpink/LzwCompress.jsREADME
lzwCompress.js
Lossless LZW compression/decompression implemented in JavaScript for strings/JSON/JS objects.
Usage:
Install lzwCompress from npm:
npm install lzwcompress
And then to use it in your node.js applications:
import lzwCompress from 'lzwcompress';
const json = {
name: 'Mr. JavaScript Kumar',
age: 42,
start_date: new Date(),
address: {
street: '123 MG Road',
city: 'Mumbai',
state: 'Maharashtra',
country: 'India'
}
};
// to compress objects
const compressed = lzwCompress.pack(json);
// to uncomress
const original = lzwCompress.unpack(compressed);
console.log(original);
Applies LZW compression and JSON key optimization and makes JSON (or any javascript object) smaller for local storage, to ship up to the server etc.
License
Other Libraries
For use in Angular 1.X projects, check out the angular-lzwcompress module
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
