Kotlin Multiplatform Javascript Unpacker

Issues Stars Forks Contributors License

This a rebuilt unpacker for JavaScript blocks that were packed with Dean Edwards JavaScript’s Packer.

The project is based on php-javascript-unpacker.

Installation

This project is available on maven central

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.

val isPacked = JsUnpacker.detect("some string here")
val unpacked = JsUnpacker.unpackAndCombine("simple example")

println(isPacked)
println(unpacked)

GitHub

View Github