js_packer 0.0.5 js_packer: ^0.0.5 copied to clipboard
Dart Package for decode Dean Edwards' JavaScript Packer.
js_packer #
Decoder for Dean Edwards' JavaScript Packer
Usage #
First call JSPacker()
with your JS value
JSPacker jsPacker = JSPacker(eval); // add your eval js code
Use detect
class to check your JS value format is correct
jsPacker.detect()
Use unpack
class to get value
jsPacker.unpack()
Example #
JSPacker jsPacker = JSPacker(eval); // add your value
if (jsPacker.detect()) {
print(jsPacker.unpack());
} else {
print("Not P.A.C.K.E.R. coded");
}