https://github.com/skipness/lzstring-dart
Dart implementation of lz-string compression algorithm
https://github.com/skipness/lzstring-dart
compression dart dartlang lzstring
Last synced: 3 months ago
JSON representation
Dart implementation of lz-string compression algorithm
- Host: GitHub
- URL: https://github.com/skipness/lzstring-dart
- Owner: skipness
- License: mit
- Created: 2019-04-02T16:01:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T03:17:06.000Z (over 3 years ago)
- Last Synced: 2025-03-27T03:34:43.965Z (3 months ago)
- Topics: compression, dart, dartlang, lzstring
- Language: Dart
- Homepage: https://pub.dev/packages/lzstring
- Size: 27.3 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# lzstring
[](https://pub.dartlang.org/packages/lzstring)Dart implementation of lz-string compression algorithm
The original JavaScript version is [here](https://github.com/pieroxy/lz-string)
## Usage
```dart
Future compressedString = LZString.compress('Some String');
Future decompressedString = LZString.decompress(compressedString);String? compressedStringSync = LZString.compressSync('Some String');
String? decompressedStringSync = LZString.decompressSync(compressedStringSync);
```
For more usage, please read the exapmle in [example](https://github.com/skipness/lzstring-dart/tree/master/example) folder## Running test
```
pub run test test/lz_string.dart
```