babel-preset-current-node-syntax

1.1.0last stable release 7 months ago
Complexity Score
Low
Open Issues
1
Dependent Projects
449
Weekly Downloadsglobal
24,163,948

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

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.

Dependencies

CVE IssuesActive
0
Scorecards Score
3.50
Test Coverage
No Data
Follows Semver
Yes
Github Stars
5
Dependenciestotal
20
DependenciesOutdated
0
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute babel-preset-current-node-syntax in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install babel-preset-current-node-syntax
Processing...
Done

9 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.