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
copied to clipboard
Use detect
class to check your JS value format is correct
jsPacker.detect()
copied to clipboard
Use unpack
class to get value
jsPacker.unpack()
copied to clipboard
Example #
JSPacker jsPacker = JSPacker(eval); // add your value
if (jsPacker.detect()) {
print(jsPacker.unpack());
} else {
print("Not P.A.C.K.E.R. coded");
}
copied to clipboard