Understanding AST for Code Transformation

Exploring Abstract Syntax Tree (AST) manipulation to understand how obfuscation tools work. The first step involves parsing JavaScript code into an AST structure: let a,b=1; // 注释 var obj = { "name":1+3*2, "func":function add(a,b){ let a1=3; return a+b } } function add(a,v){ return a+v; } let ...

Posted on Fri, 17 Jul 2026 17:16:36 +0000 by chrispols

AI-Assisted Jest Setup and Unit Test Generation for React Hooks

Motivation for AI-Powered Unit Testing The decision to implement unit testing stems from maintaining shared frontend modules—including utility functions, React components, and custom hooks—across a growing development team. As the codebase scales, automated testing becomes essential for stability. Leveraging AI accelerates this process by reduc ...

Posted on Wed, 10 Jun 2026 18:25:18 +0000 by patrick99e99

Rollup: A Lightweight Bundler for JavaScript Libraries

Rollup is a modern JavaScript module bundler designed with a primary focus on creating optimized libraries and applications. Its core strength lies in its ability to produce clean, efficient code by eliminating unused parts through a process called tree-shaking. This makes it an excellent choice for developers building SDKs, libraries, or any p ...

Posted on Wed, 10 Jun 2026 16:55:44 +0000 by ahzulfi