lzstring 2.0.0+2 copy "lzstring: ^2.0.0+2" to clipboard
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
19
likes
150
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

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)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

typed_data

More

Packages that depend on lzstring