{"library":"babel-types","type":"library","category":null,"description":"Babel Types (`@babel/types`) is a foundational package within the Babel ecosystem, providing a comprehensive set of utility methods for creating, manipulating, and validating Abstract Syntax Tree (AST) nodes. It adheres to the ESTree specification and Babel's extended AST format, making it essential for anyone writing custom Babel plugins, codemods, or performing static analysis on JavaScript code. The current stable major version is `v7.x`, with the latest being `v7.29.2`, while `v8.x` is in release candidate phase. As part of the Babel monorepo, it follows Babel's frequent release cycle for patches and minors, with major versions introducing significant breaking changes. Its key differentiator is its tight integration and compatibility with Babel's parser (`@babel/parser`) and traverser (`@babel/traverse`), providing canonical builders (e.g., `t.identifier()`), type checkers (e.g., `t.isIdentifier()`), and assertion functions (e.g., `t.assertIdentifier()`) for programmatic AST interaction.","language":"javascript","status":"active","version":"6.26.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-types","imports":["import * as t from '@babel/types';","import type { Node } from '@babel/types';","import type { ArrowFunctionExpression } from '@babel/types';"]},{"cmd":"yarn add babel-types","imports":[]},{"cmd":"pnpm add babel-types","imports":[]}],"homepage":"https://babeljs.io/","github":"https://github.com/babel/babel","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-types","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/babel-types/compatibility"}}