lzstring 2.0.0+2 lzstring: ^2.0.0+2 copied to clipboard
Dart implementation of lz-string compression algorithm. Originally written in JavaScript, for more details, please refer to http://pieroxy.net/blog/pages/lz-string/index.html
lzstring #
Dart implementation of lz-string compression algorithm
The original JavaScript version is here
Usage #
Future<String?> compressedString = LZString.compress('Some String');
Future<String?> decompressedString = LZString.decompress(compressedString);
String? compressedStringSync = LZString.compressSync('Some String');
String? decompressedStringSync = LZString.decompressSync(compressedStringSync);
For more usage, please read the exapmle in example folder
Running test #
pub run test test/lz_string.dart