source: frontend/node_modules/babel-preset-current-node-syntax/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 794 bytes
RevLine 
[9af201e]1# `babel-preset-current-node-syntax`
2
3> A Babel preset that enables parsing of proposals supported by the current Node.js version.
4
5## Installation
6
7If you are using yarn:
8```
9yarn add --dev babel-preset-current-node-syntax
10```
11
12If you are using npm:
13```
14npm install --save-dev babel-preset-current-node-syntax
15```
16
17## Contributing
18
19PRs are welcome! The codebase is so small that I didn't setup a linter, but try
20to match the style of the existing code.
21
22You can run tests with the following command:
23```
24yarn node test/index.js
25```
26
27The `test/fixtures.json` file contains a bunch of syntax tests, alongside with
28the minimum supported node version for each of them. Babel should throw on
29older versions, without support for that given syntax.
30All the tests are run using `@babel/parser@7.0.0`.
Note: See TracBrowser for help on using the repository browser.