es_compression 2.0.12 es_compression: ^2.0.12 copied to clipboard
Compression framework providing FFI implementations for Brotli, Lz4, Zstd (Zstandard) with ready-to-use prebuilt binaries for Win/Linux/Mac.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate es_compression
Use it
The package has the following executables:
$ escompress
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add es_compression
With Flutter:
$ flutter pub add es_compression
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
es_compression: ^2.0.12
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:es_compression/brotli.dart';
import 'package:es_compression/framework.dart';
import 'package:es_compression/framework_io.dart';
import 'package:es_compression/lz4.dart';
import 'package:es_compression/zstd.dart';