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
- Host: GitHub
- URL: https://github.com/eduardostuart/compacto
- Owner: eduardostuart
- License: mit
- Archived: true
- Created: 2021-12-01T16:53:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-02T18:32:24.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T14:53:32.381Z (6 months ago)
- Topics: just-for-fun
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COMPACTO
[](https://github.com/eduardostuart/compacto/actions/workflows/ci.yml)
[](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.