# @babel/traverse

> The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes

Latest version **8.0.4** (published 2026-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @babel/traverse
pnpm add @babel/traverse
yarn add @babel/traverse
bun add @babel/traverse
```

## Health

**Score 73/100 (B)** — status: active.

Positive: has types package; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.0.4 |
| Published | 2026-07-09 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/babel__traverse) |
| Module format | ESM + CommonJS |
| Node | ^22.18.0 \|\| >=24.11.0 |
| Dependencies | 7 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 43994 |
| Author | The Babel Team (https://babel.dev/team) |
| Maintainers | hzoo, existentialism, nicolo-ribaudo, jlhwung |

## Links

- npm: https://www.npmjs.com/package/@babel/traverse
- Repository: https://github.com/babel/babel
- Homepage: https://babel.dev/docs/en/next/babel-traverse
- Issues: https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen
- npm.io page: https://npm.io/package/@babel/traverse

## Dependencies (7)

- [obug](https://npm.io/package/obug.md) ^2.1.1
- [@babel/types](https://npm.io/package/@babel/types.md) ^8.0.4
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^8.0.4
- [@babel/template](https://npm.io/package/@babel/template.md) ^8.0.0
- [@babel/generator](https://npm.io/package/@babel/generator.md) ^8.0.0
- [@babel/code-frame](https://npm.io/package/@babel/code-frame.md) ^8.0.0
- [@babel/helper-globals](https://npm.io/package/@babel/helper-globals.md) ^8.0.0

## Recent versions

- 8.0.4 (latest) — 2026-07-09
- 8.0.0-rc.6 (next) — 2026-05-25
- 7.21.4-esm.4 (esm) — 2023-04-04
- 7.29.8 — 2026-07-31
- 8.0.0 — 2026-06-16
- 7.29.7 — 2026-05-25
- 8.0.0-rc.5 — 2026-05-12
- 8.0.0-rc.4 — 2026-04-29
- 8.0.0-rc.3 — 2026-03-16
- 8.0.0-rc.2 — 2026-02-15
- 8.0.0-rc.1 — 2026-01-31
- 7.29.0 — 2026-01-31
- 7.28.6 — 2026-01-12
- 8.0.0-beta.4 — 2026-01-12
- 7.28.5 — 2025-10-23
- … 205 more at https://npm.io/package/@babel/traverse/versions

## README

# @babel/traverse

> The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes

See our website [@babel/traverse](https://babeljs.io/docs/babel-traverse) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package.

## Install

Using npm:

```sh
npm install --save-dev @babel/traverse
```

or using yarn:

```sh
yarn add @babel/traverse --dev
```

---
_Source: https://npm.io/package/@babel/traverse · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
