lzw_compression 0.0.2 lzw_compression: ^0.0.2 copied to clipboard
Lossless LZW compression/decompression implemented in Dart for Strings.
LZW Compression #
LZW compression/decompression implemented in Dart for strings.
Usage: #
Install lzw_compress from pub dev:
dart pub add lzw_compress
And then to use it in your applications:
import 'package:lzw_compression/lzw_compression.dart';
LZW lzwCompress = LZW();
// to compress objects
List<int> compressed = lzwCompress.compress("Hello");
// to uncompress
String original = lzwCompress.decompress(compressed);
print(original);