Giter Club home page Giter Club logo

ast_rename_iden's Introduction

AST_rename_iden

js混淆变量名优化 csdn: https://blog.csdn.net/weixin_52728062?type=blog // 变量名映射说明

// glb 全局变量 // loc 局部变量

// Exp_arg 函数表达式形参 function (Exp_arg){}

// Dec_arg 函数声明形参 function ab(Dec_arg){}

// Arr_arg 箭头函数形参 (Arr_arg)=>{}

let map_name = { CallExpression: 'call', // 函数调用 : a()

MemberExpression: 'mem', // 对象属性 : a['b']

StringLiteral: 'str', // 字符串 : '123'

Identifier: 'id', //  变量 : abc

AssignmentExpression: 'asgE', // 赋值 : a = b

ExpressionStatement: 'exp', // 常规表达式 : 带;结尾的语句

ObjectExpression: 'obj', // Object 对象 : {}

NumericLiteral: 'num', // 数值 : 1

ArrayExpression : 'array', // 数组 : []

FunctionExpression: 'func', // 函数表达式 : function (a,b){}

UnaryExpression: 'unary', // ![]

ThisExpression: 'this', // this表达式 : this

BinaryExpression: 'bin', // 运算表达式 : 1+2+3

ConditionalExpression: 'cda', // 三元表达式 : a ? b:c

ArrowFunctionExpression: 'arr_fun', // 箭头函数 : ()=>{}

LogicalExpression : 'log', // 逻辑表达式 : a || b && c

NewExpression: 'new', // new 表达式 : new a()

BooleanLiteral:'bool', // 布尔值 : true false

UpdateExpression:'up', // 自更新表达式 : i++

AwaitExpression: 'await', // await 表达式 : await bc

SequenceExpression: 'seq', // 逗号表达式 :  a,b,c,d

RegExpLiteral: 'reg', // 正则表达式 : new RegEx

NullLiteral: 'null', // null

AssignmentPattern: 'asgP', // 赋值 : function (fm, DW = !0){}

}

ast_rename_iden's People

Contributors

neverl805 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.