zstandard_cli 1.3.21 copy "zstandard_cli: ^1.3.21" to clipboard
zstandard_cli: ^1.3.21 copied to clipboard

CLI implementation of zstandard. For desktops.

pub package

zstandard_cli #

The CLI implementation of zstandard.

Zstandard (zstd) is a fast, high-compression algorithm developed by Meta (formerly Facebook) designed for real-time compression scenarios. It provides a flexible range of compression levels, allowing both high-speed and high-ratio compression, making it ideal for applications with diverse performance needs. Zstandard is commonly used in data storage, transmission, and backup solutions.

zstandard_cli is a Dart package which provides bindings to the high-performance Zstandard compression library, enabling both in-code and command-line compression and decompression. It leverages FFI for direct access to native Zstandard functionality, allowing efficient data processing in Dart applications, from compressing data in memory to handling files through the CLI.

Only available on macOS, Windows, and Linux desktops.

Basic Usage #

void main() async {
  var cli = ZstandardCLI();

  final originalData = Uint8List.fromList([...]);

  final compressed = await cli.compress(originalData, compressionLevel: 3);

  final decompressed = await cli.decompress(compressed ?? Uint8List(0));
}

With extensions:

void main() async {
  final originalData = Uint8List.fromList([...]);

  final compressed = await originalData.compress(compressionLevel: 3);

  final decompressed = await compressed.decompress();
}

CLI Usage #

dart run zstandard_cli:compress any_file 3

dart run zstandard_cli:decompress any_file.zstd

1
likes
0
points
46
downloads

Publisher

verified publisherlandamessenger.com

Weekly Downloads

CLI implementation of zstandard. For desktops.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, path, platform

More

Packages that depend on zstandard_cli