Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T03:17:06.000Z (about 3 years ago)
- Last Synced: 2024-10-01T16:39:57.599Z (about 1 month ago)
- Topics: compression, dart, dartlang, lzstring
- Language: Dart
- Homepage: https://pub.dev/packages/lzstring
- Size: 27.3 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# lzstring
[![Pub](https://img.shields.io/badge/pub-v2.0.0%2B2-blue.svg)](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
```