javascript-obfuscator

  • Version 5.9.0
  • Published
  • 12.2 MB
  • 23 dependencies
  • BSD-2-Clause license

Install

npm i javascript-obfuscator
yarn add javascript-obfuscator
pnpm add javascript-obfuscator

Overview

JavaScript obfuscator

Index

Variables

variable version

const version: string;

    Functions

    function getOptionsByPreset

    getOptionsByPreset: (optionsPreset: TOptionsPreset) => TInputOptions;

      function getProQuota

      getProQuota: (proApiConfig: IProApiConfig) => Promise<IProQuota>;

        function obfuscate

        obfuscate: (
        sourceCode: string,
        inputOptions?: ObfuscatorOptions
        ) => ObfuscationResult;

          function obfuscateMultiple

          obfuscateMultiple: <TSourceCodesObject extends TDictionary<string>>(
          sourceCodesObject: TSourceCodesObject,
          inputOptions?: TInputOptions
          ) => TObfuscationResultsObject<TSourceCodesObject>;

            function obfuscatePro

            obfuscatePro: (
            sourceCode: string,
            inputOptions: ObfuscatorOptions,
            proApiConfig: IProApiConfig,
            onProgress?: TProApiProgressCallback
            ) => Promise<ProObfuscationResult>;

              Classes

              class ApiError

              class ApiError extends Error {}

                constructor

                constructor(
                message: string,
                statusCode: number,
                response?: string,
                code?: string
                );

                  property code

                  readonly code?: string;

                    property response

                    readonly response?: string;

                      property statusCode

                      readonly statusCode: number;

                        Interfaces

                        interface IProApiConfig

                        interface IProApiConfig {}

                          property apiToken

                          apiToken: string;

                            property timeout

                            timeout?: number;

                              property version

                              version?: string;

                                interface IProQuota

                                interface IProQuota {}

                                  property daily

                                  daily: IProQuotaWindow | null;

                                    property minBytesPerBuild

                                    minBytesPerBuild: number;

                                      property monthly

                                      monthly: IProQuotaWindow | null;

                                        property remainingBytes

                                        remainingBytes: number | null;

                                          interface IProQuotaWindow

                                          interface IProQuotaWindow {}

                                            property limitBytes

                                            limitBytes: number;

                                              property resetsAt

                                              resetsAt: string;

                                                property usedBytes

                                                usedBytes: number;

                                                  interface ObfuscationResult

                                                  interface ObfuscationResult extends IObfuscationResult {}

                                                    interface ProObfuscationResult

                                                    interface ProObfuscationResult extends IProObfuscationResult {}

                                                      Type Aliases

                                                      type ObfuscatorOptions

                                                      type ObfuscatorOptions = TInputOptions;

                                                        type TProApiProgressCallback

                                                        type TProApiProgressCallback = (message: string) => void;

                                                          Package Files (3)

                                                          Dependencies (23)

                                                          Dev Dependencies (54)

                                                          Peer Dependencies (0)

                                                          No peer dependencies.

                                                          Badge

                                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/javascript-obfuscator.

                                                          • Markdown
                                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/javascript-obfuscator)
                                                          • HTML
                                                            <a href="https://www.jsdocs.io/package/javascript-obfuscator"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>