File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# lzstring
2
- [ ![ Pub] ( https://img.shields.io/badge/pub-v1 .0.3%2B1 -blue.svg )] ( https://pub.dartlang.org/packages/lzstring )
2
+ [ ![ Pub] ( https://img.shields.io/badge/pub-v2 .0.0%2B2 -blue.svg )] ( https://pub.dartlang.org/packages/lzstring )
3
3
4
4
Dart implementation of lz-string compression algorithm
5
5
6
6
The original JavaScript version is [ here] ( https://github.com/pieroxy/lz-string )
7
7
8
8
## Usage
9
9
``` dart
10
- Future<String> compressedString = LZString.compress('Some String');
10
+ Future<String? > compressedString = LZString.compress('Some String');
11
11
Future<String?> decompressedString = LZString.decompress(compressedString);
12
+
13
+ String? compressedStringSync = LZString.compressSync('Some String');
14
+ String? decompressedStringSync = LZString.decompressSync(compressedStringSync);
12
15
```
13
16
For more usage, please read the exapmle in [ example] ( https://github.com/skipness/lzstring-dart/tree/master/example ) folder
14
17
You can’t perform that action at this time.
0 commit comments