// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>

// https://github.com/vercel/pkg
meta("packer", "pkg");

function detect() {
    if (!PE.isExportFunctionPresent("napi_wrap"))
        return;

    // Has overlay at all
    bDetected = PE.isOverlayPresent() && PE.getOverlaySize() >= 0x100 && PE.findString(PE.section[1].FileOffset, PE.section[1].FileSize, "pkg/prelude/bootstrap.js") != -1;

    sLang = "JavaScript";

    return result();
}
