# tree-sitter-javascript

> JavaScript grammar for tree-sitter

Latest version **0.25.0** (published 2025-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install tree-sitter-javascript
pnpm add tree-sitter-javascript
yarn add tree-sitter-javascript
bun add tree-sitter-javascript
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.25.0 |
| Published | 2025-09-01 |
| First published | 2014-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 493 |
| Author | Max Brunsfeld |
| Maintainers | ahlinc, maxbrunsfeld, amaanq, tclem, daviwil, queerviolet, rewinfrey, robrix, joshvera, ben3eee, atom-team, jasonrudolph, darangi, patrickthomson |
| Keywords | incremental, parsing, tree-sitter, javascript |

## Links

- npm: https://www.npmjs.com/package/tree-sitter-javascript
- Repository: https://github.com/tree-sitter/tree-sitter-javascript
- Homepage: https://github.com/tree-sitter/tree-sitter-javascript#readme
- Issues: https://github.com/tree-sitter/tree-sitter-javascript/issues
- npm.io page: https://npm.io/package/tree-sitter-javascript

## Dependencies (2)

- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.3.1
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.8.4

## Recent versions

- 0.25.0 (latest) — 2025-09-01
- 0.23.1 — 2024-11-10
- 0.23.0 — 2024-09-02
- 0.21.4 — 2024-07-06
- 0.21.3 — 2024-05-24
- 0.21.2 — 2024-05-06
- 0.21.0 — 2024-04-05
- 0.20.4 — 2024-03-10
- 0.20.3 — 2024-02-01
- 0.20.2 — 2024-01-31
- 0.20.1 — 2023-08-25
- 0.19.0 — 2021-03-03
- 0.16.0 — 2019-12-10
- 0.15.2 — 2019-12-06
- 0.15.1 — 2019-07-10
- … 55 more at https://npm.io/package/tree-sitter-javascript/versions

## README

# tree-sitter-javascript

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-javascript/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-javascript)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-javascript)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-javascript)

JavaScript and JSX grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

This grammar intends to be a close approximation of the [ECMAScript](https://ecma-international.org/publications-and-standards/standards/ecma-262/)
specification, with some extensions to support JSX syntax. We try to support the
latest version of the spec, though it is possible that some very new features may
not be supported yet.

References

- [The ESTree Spec](https://github.com/estree/estree)
- [The ECMAScript 2025 Spec](https://tc39.es/ecma262/2025/)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-javascript/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-javascript?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-javascript?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-javascript?logo=pypi&logoColor=ffd242

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