Skip to main content
@jssg/utils provides reusable helpers for JSSG codemods. Open the page for the language of the AST you are transforming.

Installation

Add @jssg/utils to your codemod project:
package.json

Languages

JavaScript and TypeScript

Locate imports, match file style, and resolve bindings in JavaScript and TypeScript programs.

Java

Check imports and types, resolve visible declarations, and read anonymous class methods.

XML

Find elements, read attributes, and measure indentation.