babel-preset-current-node-syntax (1.2.0)

Published 2026-02-24 13:53:20 +00:00 by atheaadmin

Installation

registry=
npm install babel-preset-current-node-syntax@1.2.0
"babel-preset-current-node-syntax": "1.2.0"

About this package

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.

Dependencies

Dependencies

ID Version
@babel/plugin-syntax-async-generators ^7.8.4
@babel/plugin-syntax-bigint ^7.8.3
@babel/plugin-syntax-class-properties ^7.12.13
@babel/plugin-syntax-class-static-block ^7.14.5
@babel/plugin-syntax-import-attributes ^7.24.7
@babel/plugin-syntax-import-meta ^7.10.4
@babel/plugin-syntax-json-strings ^7.8.3
@babel/plugin-syntax-logical-assignment-operators ^7.10.4
@babel/plugin-syntax-nullish-coalescing-operator ^7.8.3
@babel/plugin-syntax-numeric-separator ^7.10.4
@babel/plugin-syntax-object-rest-spread ^7.8.3
@babel/plugin-syntax-optional-catch-binding ^7.8.3
@babel/plugin-syntax-optional-chaining ^7.8.3
@babel/plugin-syntax-private-property-in-object ^7.14.5
@babel/plugin-syntax-top-level-await ^7.14.5

Development Dependencies

ID Version
@babel/core 7.25.2
@babel/core-8 npm:@babel/core@^8.0.0-beta.1
@babel/parser-7.0.0 npm:@babel/parser@7.0.0
@babel/parser-7.12.0 npm:@babel/parser@7.12.0
@babel/parser-7.22.0 npm:@babel/parser@7.22.0
@babel/parser-7.9.0 npm:@babel/parser@7.9.0

Peer Dependencies

ID Version
@babel/core ^7.0.0 || ^8.0.0-0
Details
npm
2026-02-24 13:53:20 +00:00
0
Nicolò Ribaudo
MIT
latest
3.1 KiB
Assets (1)
Versions (1) View all
1.2.0 2026-02-24