# babel-preset-current-node-syntax

> A Babel preset that enables parsing of proposals supported by the current Node.js version.

Latest version **1.2.0** (published 2025-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-preset-current-node-syntax
pnpm add babel-preset-current-node-syntax
yarn add babel-preset-current-node-syntax
bun add babel-preset-current-node-syntax
```

## Health

**Score 35/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2025-07-30 |
| First published | 2020-04-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Nicolò Ribaudo |
| Maintainers | nicolo-ribaudo |

## Links

- npm: https://www.npmjs.com/package/babel-preset-current-node-syntax
- Repository: https://github.com/nicolo-ribaudo/babel-preset-current-node-syntax
- Homepage: https://github.com/nicolo-ribaudo/babel-preset-current-node-syntax#readme
- Issues: https://github.com/nicolo-ribaudo/babel-preset-current-node-syntax/issues
- npm.io page: https://npm.io/package/babel-preset-current-node-syntax

## Dependencies (15)

- [@babel/plugin-syntax-bigint](https://npm.io/package/@babel/plugin-syntax-bigint.md) ^7.8.3
- [@babel/plugin-syntax-import-meta](https://npm.io/package/@babel/plugin-syntax-import-meta.md) ^7.10.4
- [@babel/plugin-syntax-json-strings](https://npm.io/package/@babel/plugin-syntax-json-strings.md) ^7.8.3
- [@babel/plugin-syntax-top-level-await](https://npm.io/package/@babel/plugin-syntax-top-level-await.md) ^7.14.5
- [@babel/plugin-syntax-async-generators](https://npm.io/package/@babel/plugin-syntax-async-generators.md) ^7.8.4
- [@babel/plugin-syntax-class-properties](https://npm.io/package/@babel/plugin-syntax-class-properties.md) ^7.12.13
- [@babel/plugin-syntax-import-attributes](https://npm.io/package/@babel/plugin-syntax-import-attributes.md) ^7.24.7
- [@babel/plugin-syntax-numeric-separator](https://npm.io/package/@babel/plugin-syntax-numeric-separator.md) ^7.10.4
- [@babel/plugin-syntax-optional-chaining](https://npm.io/package/@babel/plugin-syntax-optional-chaining.md) ^7.8.3
- [@babel/plugin-syntax-class-static-block](https://npm.io/package/@babel/plugin-syntax-class-static-block.md) ^7.14.5
- [@babel/plugin-syntax-object-rest-spread](https://npm.io/package/@babel/plugin-syntax-object-rest-spread.md) ^7.8.3
- [@babel/plugin-syntax-optional-catch-binding](https://npm.io/package/@babel/plugin-syntax-optional-catch-binding.md) ^7.8.3
- [@babel/plugin-syntax-private-property-in-object](https://npm.io/package/@babel/plugin-syntax-private-property-in-object.md) ^7.14.5
- [@babel/plugin-syntax-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-syntax-nullish-coalescing-operator.md) ^7.8.3
- [@babel/plugin-syntax-logical-assignment-operators](https://npm.io/package/@babel/plugin-syntax-logical-assignment-operators.md) ^7.10.4

## Recent versions

- 1.2.0 (latest) — 2025-07-30
- 0.1.4-0 (next) — 2020-09-26
- 1.1.1 — 2025-07-28
- 1.1.0 — 2024-08-13
- 1.0.1 — 2020-12-15
- 1.0.0 — 2020-10-31
- 0.1.4 — 2020-10-04
- 0.1.3 — 2020-06-15
- 0.1.2 — 2020-04-07
- 0.1.1 — 2020-04-06
- 0.1.0 — 2020-04-05

## README

# `babel-preset-current-node-syntax`

> A Babel preset that enables parsing of proposals supported by the current Node.js version.

## Installation

If you are using yarn:
```
yarn add --dev babel-preset-current-node-syntax
```

If you are using npm:
```
npm install --save-dev babel-preset-current-node-syntax
```

## Contributing

PRs are welcome! The codebase is so small that I didn't setup a linter, but try
to match the style of the existing code.

You can run tests with the following command:
```
yarn node test/index.js
```

The `test/fixtures.json` file contains a bunch of syntax tests, alongside with
the minimum supported node version for each of them. Babel should throw on
older versions, without support for that given syntax.
All the tests are run using `@babel/parser@7.0.0`.

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