lzstring 2.0.0+2 icon indicating copy to clipboard operation
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 #

Pub

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
13
likes
130
pub points
86%
popularity

Publisher

unverified uploader

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

typed_data

More

Packages that depend on lzstring