awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pieroxy avatar

pieroxy/lz-string

0
View on GitHub↗
4,416 星标·570 分支·TypeScript·MIT·4 次浏览

Lz String

lz-string 是一个用于使用 Lempel-Ziv 算法压缩和解压字符串数据的 JavaScript 库和命令行工具。它提供了减小字符串和文件大小的实用程序,以优化存储和网络带宽。

该项目包含专门的编码器,以确保压缩数据与不同的传输层兼容。这些选项包括 Base64 编码、用于提高存储密度的 UTF-16 字符串映射,以及用于网址的 URI 安全转换。

该库支持用于本地存储优化的客户端数据压缩,并提供了一个命令行界面,用于对文件或标准输入执行压缩和解压操作。

Features

  • String Compression - Provides a utility for reducing the size of string data using an LZ-based algorithm to optimize storage.
  • JavaScript - Reduces the size of text data in JavaScript to save storage space or reduce network bandwidth.
  • LZ-Based String Compressors - Compresses and decompresses string data using Lempel-Ziv algorithms to save storage or bandwidth.
  • Dictionary-Based Compression - Implements compression by replacing repeated substrings with references to a dictionary of previously encountered patterns.
  • Sliding Window Matching - Uses a sliding window to identify the longest matching prefixes for efficient back-referencing during compression.
  • Client-Side Compression - Allows data compression within the web browser to improve page load times and reduce transmission size.
  • Browser-Based Compression Libraries - Implements LZ-based compression specifically for reducing string and file sizes within JavaScript environments.
  • Compression and Decompression - Provides a utility for restoring compressed strings to their original form using a matching LZ-based algorithm.
  • Browser Local - Shrinks string data before saving it to browser storage to bypass strict character limits and capacity constraints.
  • Transport-Layer Encodings - Outputs compressed data as Base64, UTF-16, or URI-safe strings to ensure compatibility with different transport layers.
  • CLI Compression Tools - Provides a command line interface for compressing and decompressing files or standard input.
  • URI Encoding Utilities - Converts compressed data into formats that can be safely passed through URLs without breaking the request.
  • File Compression and Decompression - Enables the compression and decompression of files via a terminal interface.
  • URI-Safe Translations - Replaces reserved characters in compressed output to ensure strings remain valid when used in web addresses.
  • UTF-16 Encodings - Encodes compressed bits directly into 16-bit Unicode characters to maximize storage density in JavaScript strings.

Star 历史

pieroxy/lz-string 的 Star 历史图表pieroxy/lz-string 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

pieroxy/lz-string 是做什么的?

lz-string 是一个用于使用 Lempel-Ziv 算法压缩和解压字符串数据的 JavaScript 库和命令行工具。它提供了减小字符串和文件大小的实用程序,以优化存储和网络带宽。

pieroxy/lz-string 的主要功能有哪些?

pieroxy/lz-string 的主要功能包括:String Compression, JavaScript, LZ-Based String Compressors, Dictionary-Based Compression, Sliding Window Matching, Client-Side Compression, Browser-Based Compression Libraries, Compression and Decompression。

pieroxy/lz-string 有哪些开源替代品?

pieroxy/lz-string 的开源替代品包括: facebook/zstd — Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast… nodeca/pako — Pako is a pure JavaScript compression library that ports the C zlib library to JavaScript, providing deflate and gzip… google/brotli — Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce… lz4/lz4 — This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed… dop251/goja — Goja is a JavaScript engine and ECMAScript compliant interpreter implemented entirely in Go. It serves as an embedded… donaldcwl/browser-image-compression — Browser image compression is a JavaScript utility designed to reduce image file sizes directly within the web browser.…

Lz String 的开源替代方案

相似的开源项目,按与 Lz String 的功能重合度排序。
  • facebook/zstdfacebook 的头像

    facebook/zstd

    27,259在 GitHub 上查看↗

    Zstandard is a lossless data compression library and archive format designed for high compression ratios and fast real-time processing. It functions as a real-time data compressor and multi-threaded compression engine capable of distributing workloads across multiple CPU cores to increase throughput. The system features a dictionary-based compressor that trains on sample data to improve the compression ratio and speed of small files. It also provides long distance pattern matching to identify repeated sequences across large files. The library covers a broad range of capabilities including st

    C
    在 GitHub 上查看↗27,259
  • nodeca/pakonodeca 的头像

    nodeca/pako

    6,081在 GitHub 上查看↗

    Pako is a pure JavaScript compression library that ports the C zlib library to JavaScript, providing deflate and gzip compression and decompression capabilities. It runs in both browser and Node.js environments by using typed arrays and universal JavaScript, avoiding platform-specific APIs for cross-platform compatibility. The library handles data through bitwise operations for Huffman coding and LZ77 matching, and automatically encodes string inputs to UTF-8 before compression while decoding them back on decompression. It supports streaming chunk-based processing, allowing incremental data h

    JavaScript
    在 GitHub 上查看↗6,081
  • google/brotligoogle 的头像

    google/brotli

    14,753在 GitHub 上查看↗

    Brotli is a lossless data compression library and engine that uses dictionary coding and frequency analysis to reduce file sizes. It provides tools for shrinking data streams and files while ensuring every bit of original information is preserved for perfect restoration. The project focuses on optimizing web content and network bandwidth by reducing the size of HTML, CSS, and JavaScript files. It is designed for integration into web servers and browsers to improve the efficiency of data transmission. The library includes capabilities for both compressing and decompressing data streams. It al

    TypeScript
    在 GitHub 上查看↗14,753
  • lz4/lz4lz4 的头像

    lz4/lz4

    11,882在 GitHub 上查看↗

    This project provides a lossless compression algorithm and a byte-oriented compression library designed for high-speed data reduction and maximum decompression speed. It functions as a stream-oriented compression engine, a software library for encoding and decoding data blocks, and a command-line tool for managing interoperable compressed frames. The system distinguishes itself through the use of predefined pattern dictionaries to improve compression ratios for small data sets and small packets. It supports multiple processing modes, including high-speed block compression for minimal latency

    Cccompressionlz4
    在 GitHub 上查看↗11,882
  • 查看 Lz String 的所有 30 个替代方案→