0 purchases
dart string compressor
String Compressor #
A Dart package for compressing and decompressing strings using GZip and Base64 encoding.
Features #
Compress and decompress strings synchronously in the same isolate.
Compress and decompress strings asynchronously in a separate isolate.
Usage #
// Import the package
import 'package:string_compressor/string_compressor.dart';
// Compress a string
String compressedString = compressSync("your string");
// Decompress a string
String decompressedString = decompressSync(compressedString);
// Compress a string in a separate isolate
String compressedString = await compress("your string");
// Decompress a string in a separate isolate
String decompressedString = await decompress(compressedString);
copied to clipboard
Installation #
dependencies:
string_compressor: ^1.0.3
copied to clipboard
Then install it by running flutter pub get in your terminal.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.