obfuscator-io-deobfuscator icon indicating copy to clipboard operation
obfuscator-io-deobfuscator copied to clipboard

Add configuration options to npm package

Open ben-sb opened this issue 9 months ago • 0 comments

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

ben-sb avatar May 14 '24 11:05 ben-sb