ben-sb / obfuscator-io-deobfuscator

A deobfuscator for scripts obfuscated by Obfuscator.io
https://obf-io.deobfuscate.io
Apache License 2.0
275 stars 61 forks source link

Add configuration options to npm package #30

Open ben-sb opened 1 month ago

ben-sb commented 1 month ago

The npm package should support configuring all the same options as the web version.

Config interface should be

interface Config {
    silent: boolean;
    objectSimplification: {
        isEnabled: boolean;
        unsafeReplace: boolean;
    };
    objectPacking: {
        isEnabled: boolean;
    };
    proxyFunctionInlining: {
        isEnabled: boolean;
    };
    stringRevealing: {
        isEnabled: boolean;
    };
    expressionSimplification: {
        isEnabled: boolean;
    };
    constantPropagation: {
        isEnabled: boolean;
    };
    reassignmentRemoval: {
        isEnabled: boolean;
    };
    sequenceSplitting: {
        isEnabled: boolean;
    };
    controlFlowRecovery: {
        isEnabled: boolean;
    };
    deadBranchRemoval: {
        isEnabled: boolean;
    };
    unusedVariableRemoval: {
        isEnabled: boolean;
    };
    propertySimplification: {
        isEnabled: boolean;
    };
}

Reported in #29