dart_string_compressor 1.0.2 copy "dart_string_compressor: ^1.0.2" to clipboard
dart_string_compressor: ^1.0.2 copied to clipboard

A lightweight packgae to compress and decompress strings

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);

Installation #

dependencies:
  string_compressor: ^1.0.1

Then install it by running flutter pub get in your terminal.

1
likes
140
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight packgae to compress and decompress strings

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dart_string_compressor