https://github.com/datl4g/jsunpacker
A javascript unpacker written in Kotlin, available for all platforms
https://github.com/datl4g/jsunpacker
Last synced: over 1 year ago
JSON representation
A javascript unpacker written in Kotlin, available for all platforms
- Host: GitHub
- URL: https://github.com/datl4g/jsunpacker
- Owner: DatL4g
- License: apache-2.0
- Created: 2022-07-02T11:43:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T14:29:57.000Z (over 2 years ago)
- Last Synced: 2025-03-24T03:34:52.405Z (over 1 year ago)
- Language: Kotlin
- Size: 119 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Kotlin Multiplatform Javascript Unpacker
[](https://github.com/DATL4G/JsUnpacker/issues)
[](https://github.com/DATL4G/JsUnpacker/stargazers)
[](https://github.com/DATL4G/JsUnpacker/network/members)
[](https://github.com/DATL4G/JsUnpacker/graphs/contributors)
[](https://github.com/DATL4G/JsUnpacker/blob/master/LICENSE)
This a rebuilt unpacker for JavaScript blocks that were packed with [Dean Edwards JavaScript's Packer](http://dean.edwards.name/packer/).
The project is based on [php-javascript-unpacker](https://github.com/rkaradas/php-javascript-unpacker).
## Installation
This project is available on maven central
```gradle
implementation("dev.datlag.jsunpacker:jsunpacker:1.0.1")
```
## Usage
The purpose of this script is to unpack automated data, e.g. site scraping, where you need to get the unpacked version of a packed JavaScript to parse out link or something like that.
**The UnpackUnitTest class provides some small examples and shows some limitations on how to use it.**
```kotlin
val isPacked = JsUnpacker.detect("some string here")
val unpacked = JsUnpacker.unpackAndCombine("simple example")
println(isPacked)
println(unpacked)
```