Socket
Book a DemoInstallSign in
Socket

abridge

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abridge

1.1.6
Source
Cargo
Version published
Maintainers
0
Created
Source

abridge

Compress a sorted word list (often called a dictionary) or decompress a file compressed by abridge or GNU word-list-compress.

abridge is a port of GNU word-list-compress to Rust. It doesn't have anything to do with the GNU Aspell project. word-list-compress is about 150 SLOC. abridge is about 50 SLOC. They perform identically.

abridge is both a Rust library and CLI, so you can use abridge in your Rust project or run it by itself. The CLI expects input from stdin and will output to stdout.

It only relies on clap and Rust's built-in substring crate.

Install

You'll need the Rust compiler and Cargo. The easiest way to do that is to get rustup.

cargo install abridge

Usage

See abridge --help.

Examples

abridge -c < words.txt # compress words.txt
abridge --decompress < words.tzip # decompress words.tzip
abridge --compress < words.txt > words.tzip # compress words.txt and save to words.tzip 

Safety

abridge can compress word lists where:

  • Words are in alphabetical order
  • Words are separated by newline
  • Words contain ASCII characters

Words may include uppercase characters.

abridge can decompress files compressed by abridge or word-list-compress alike.

Testing

Run cargo test.

License

abridge is licensed under GNU General Public License.

FAQs

Package last updated on 07 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.