An open API service indexing awesome lists of open source software.

https://github.com/eduardostuart/compacto

A fast way to compress & decompress JSON
https://github.com/eduardostuart/compacto

just-for-fun

Last synced: 6 months ago
JSON representation

A fast way to compress & decompress JSON

Awesome Lists containing this project

README

          

# COMPACTO

[![ci](https://github.com/eduardostuart/compacto/actions/workflows/ci.yml/badge.svg)](https://github.com/eduardostuart/compacto/actions/workflows/ci.yml)
[![Documentation](https://docs.rs/compacto/badge.svg)](https://docs.rs/compacto/)

> A fast way to compress & decompress JSON

## Lib

To use this lib in your project, add the following line to your `Cargo.toml` file:

```toml
compacto = { version = "1.0.2" }
```

You can find the full documentation on [Docs.rs](https://docs.rs/compacto).

## Examples

There are a few examples in the `/examples` folder if you want to run it locally:

```bash
cargo run --release --example example-filename
```

## CLI

### Usage

Compress a JSON file/string:
```bash
compacto ./input-file.json ./output.compacto.json -m compress
```

Decompress a JSON file/string:
```bash
compacto ./compacto-file.compacto.json ./output.json -m decompress
```

### Installation

**From binaries**

Check out the [release page](https://github.com/eduardostuart/compacto/releases/) for prebuilt versions of `COMPACTO`.

## License

`COMPACTO` is made available under the terms of MIT License.

See the [LICENSE-MIT](./LICENSE) for license details.