javascript-obfuscator
Version:
JavaScript obfuscator
72 lines (71 loc) • 3.72 kB
TypeScript
import { TIdentifierNamesCache } from '../types/TIdentifierNamesCache';
import { TInputOptions } from '../types/options/TInputOptions';
import { TOptionsPreset } from '../types/options/TOptionsPreset';
import { TRenamePropertiesMode } from '../types/options/TRenamePropertiesMode';
import { TStringArrayIndexesType } from '../types/options/TStringArrayIndexesType';
import { TStringArrayEncoding } from '../types/options/TStringArrayEncoding';
import { TStringArrayWrappersType } from '../types/options/TStringArrayWrappersType';
import { TTypeFromEnum } from '../types/utils/TTypeFromEnum';
import { IOptions } from '../interfaces/options/IOptions';
import { IOptionsNormalizer } from '../interfaces/options/IOptionsNormalizer';
import { IdentifierNamesGenerator } from '../enums/generators/identifier-names-generators/IdentifierNamesGenerator';
import { ObfuscationTarget } from '../enums/ObfuscationTarget';
import { SourceMapMode } from '../enums/source-map/SourceMapMode';
import { SourceMapSourcesMode } from '../enums/source-map/SourceMapSourcesMode';
export declare class Options implements IOptions {
private static readonly optionPresetsMap;
private static readonly validatorOptions;
readonly compact: boolean;
readonly controlFlowFlattening: boolean;
readonly controlFlowFlatteningThreshold: number;
readonly deadCodeInjection: boolean;
readonly deadCodeInjectionThreshold: number;
readonly debugProtection: boolean;
readonly debugProtectionInterval: number;
readonly disableConsoleOutput: boolean;
readonly domainLock: string[];
readonly domainLockRedirectUrl: string;
readonly forceTransformStrings: string[];
readonly identifierNamesCache: TIdentifierNamesCache;
readonly identifierNamesGenerator: TTypeFromEnum<typeof IdentifierNamesGenerator>;
readonly identifiersPrefix: string;
readonly identifiersDictionary: string[];
readonly ignoreImports: boolean;
readonly inputFileName: string;
readonly log: boolean;
readonly numbersToExpressions: boolean;
readonly optionsPreset: TOptionsPreset;
readonly renameGlobals: boolean;
readonly renameProperties: boolean;
readonly renamePropertiesMode: TRenamePropertiesMode;
readonly reservedNames: string[];
readonly reservedStrings: string[];
readonly selfDefending: boolean;
readonly simplify: boolean;
readonly sourceMap: boolean;
readonly sourceMapBaseUrl: string;
readonly sourceMapFileName: string;
readonly sourceMapMode: TTypeFromEnum<typeof SourceMapMode>;
readonly sourceMapSourcesMode: TTypeFromEnum<typeof SourceMapSourcesMode>;
readonly splitStrings: boolean;
readonly splitStringsChunkLength: number;
readonly stringArray: boolean;
readonly stringArrayCallsTransform: boolean;
readonly stringArrayCallsTransformThreshold: number;
readonly stringArrayEncoding: TStringArrayEncoding[];
readonly stringArrayIndexesType: TStringArrayIndexesType[];
readonly stringArrayIndexShift: boolean;
readonly stringArrayRotate: boolean;
readonly stringArrayShuffle: boolean;
readonly stringArrayWrappersChainedCalls: boolean;
readonly stringArrayWrappersCount: number;
readonly stringArrayWrappersParametersMaxCount: number;
readonly stringArrayWrappersType: TStringArrayWrappersType;
readonly stringArrayThreshold: number;
readonly target: TTypeFromEnum<typeof ObfuscationTarget>;
readonly transformObjectKeys: boolean;
readonly unicodeEscapeSequence: boolean;
readonly seed: string | number;
constructor(inputOptions: TInputOptions, optionsNormalizer: IOptionsNormalizer);
static getOptionsByPreset(optionsPreset: TOptionsPreset): TInputOptions;
}