{"library":"ast-types-x","type":"library","category":null,"description":"ast-types-x is a JavaScript library providing an efficient, modular, and Esprima-compatible implementation of the Mozilla Parser API's abstract syntax tree (AST) type hierarchy. It serves as a foundational tool for working with JavaScript ASTs, enabling robust static analysis, code transformation, and code generation. The current stable version is 1.18.0, released in August 2024, indicating active maintenance and feature development, such as recent additions for `PrivateIdentifier` and `decorators`. Key differentiators include its comprehensive understanding of the AST type system, facilitating advanced node iteration and traversal mechanisms, and its builder API for programmatically constructing AST nodes. It aims to offer complete control over AST manipulation through primitives like `getFieldNames` and `getFieldValue`, alongside a powerful `visit` abstraction for tree traversal, making it suitable for complex code analysis and manipulation tasks. It ships with TypeScript types, enhancing developer experience in TypeScript projects.","language":"javascript","status":"active","version":"1.18.0","tags":["javascript","ast","abstract syntax tree","hierarchy","mozilla","spidermonkey","parser api","esprima","types","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ast-types-x","imports":["import { namedTypes } from 'ast-types-x';","import { builders } from 'ast-types-x';","import { visit } from 'ast-types-x';","import { getFieldNames, getFieldValue } from 'ast-types-x';"]},{"cmd":"yarn add ast-types-x","imports":[]},{"cmd":"pnpm add ast-types-x","imports":[]}],"homepage":null,"github":"https://github.com/pionxzh/ast-types-x","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ast-types-x","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ast-types-x/compatibility"}}