Skip to main content

Built and signed on GitHub Actions

A toolkit for easy Babel AST generation and manipulation.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
5 hours ago (1.3.2)

ast-kit npm JSR Unit Test codecov

A toolkit for easy Babel AST generation and manipulation.

📖 API Reference

Features

  • 😇 Easy to Use: Parse and resolve Babel AST with a straightforward API.
  • 🦾 Type-Friendly: Built in TypeScript with complete type definitions.
  • 💯 Coverage: 100% test coverage.
  • 🪶 Lightweight: Tree-shakable with only two dependencies.

Install

npm i ast-kit

Requires Node.js 16.14.0 or higher.

AST Explorer

You can explore your code's AST using the AST Explorer.

Sponsors

License

MIT License © 2023-PRESENT 三咲智子

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@sxzz/ast-kit

Import symbol

import * as ast_kit from "@sxzz/ast-kit";

---- OR ----

Import directly with a jsr specifier

import * as ast_kit from "jsr:@sxzz/ast-kit";

Add Package

npx jsr add @sxzz/ast-kit

Import symbol

import * as ast_kit from "@sxzz/ast-kit";

Add Package

yarn dlx jsr add @sxzz/ast-kit

Import symbol

import * as ast_kit from "@sxzz/ast-kit";

Add Package

pnpm dlx jsr add @sxzz/ast-kit

Import symbol

import * as ast_kit from "@sxzz/ast-kit";

Add Package

bunx jsr add @sxzz/ast-kit

Import symbol

import * as ast_kit from "@sxzz/ast-kit";