Skip to content
/ mozlz4 Public

Decompress / compress mozlz4 files, with precompiled binaries for Windows and Linux

License

Notifications You must be signed in to change notification settings

jusw85/mozlz4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mozlz4

Decompress / compress mozlz4 files, specifically search.json.mozlz4 in Firefox.

Binaries available here

Usage

$ ./mozlz4 --help
mozlz4 0.1.0
Justin Wong
Decompress and compress mozlz4 files. Overwrites existing files.

USAGE:
    mozlz4.exe [FLAGS] <input> [output]

FLAGS:
    -x, --extract     decompress mozlz4 (default)
    -z, --compress    compress to mozlz4
    -h, --help        Prints help information
    -V, --version     Prints version information

ARGS:
    <input>     input file, - for stdin
    <output>    output file, - for stdout (default)

Examples

Extract search.json.lz4

$ ./mozlz4 search.json.mozlz4 search.json

Compress search.json

$ ./mozlz4 -z search.json search.json.mozlz4

Building

$ cargo build --release

Notes

$ rustc --version
rustc 1.61.0 (fe5b13d68 2022-05-18)

lz4.h and lz4.c copied directly from Mozilla repo

About

Decompress / compress mozlz4 files, with precompiled binaries for Windows and Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages