https://github.com/thitlwincoder/js_packer
Flutter Package for decode Dean Edwards' JavaScript Packer.
https://github.com/thitlwincoder/js_packer
Last synced: 4 months ago
JSON representation
Flutter Package for decode Dean Edwards' JavaScript Packer.
- Host: GitHub
- URL: https://github.com/thitlwincoder/js_packer
- Owner: thitlwincoder
- License: mit
- Created: 2020-10-22T17:23:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-18T06:18:58.000Z (over 3 years ago)
- Last Synced: 2024-10-14T09:26:27.633Z (over 1 year ago)
- Language: Dart
- Homepage: https://pub.dev/packages/js_packer
- Size: 64.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# js_packer
[](https://pub.dev/packages/js_packer)
[](https://github.com/thitlwincoder/js_packer/commits/master)
[](https://github.com/thitlwincoder/js_packer)
[](https://github.com/thitlwincoder/js_packer/blob/master/LICENSE)
[](https://github.com/thitlwincoder)
Decoder for Dean Edwards' JavaScript Packer
## Usage
First call `JSPacker()` with your JS value
```dart
JSPacker jsPacker = JSPacker(eval); // add your eval js code
```
Use `detect` class to check your JS value format is correct
```dart
jsPacker.detect()
```
Use `unpack` class to get value
```dart
jsPacker.unpack()
```
### Example
```dart
JSPacker jsPacker = JSPacker(eval); // add your value
if (jsPacker.detect()) {
print(jsPacker.unpack());
} else {
print("Not P.A.C.K.E.R. coded");
}
```