lzstring 1.0.3+1
lzstring: ^1.0.3+1 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

example/main.dart

import 'package:lzstring/lzstring.dart';

void main() async { 
  String input = "Dart implemntation of lz-string";
  print('Input: $input');
  print('Compressed String: ${await LZString.compress(input)}');
  print('Compressed Base 64 String: ${await LZString.compressToBase64(input)}');
  print('Compressed UTF16 String: ${await LZString.compressToUTF16(input)}');
  print(
      'Compressed Encoded URI Component: ${await LZString.compressToEncodedURIComponent(input)}');
  print('Compressed Uint8 Array: ${await LZString.compressToUint8Array(input)}');
}
7
likes
130
pub points
76%
popularity

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