https://github.com/hzoo/babel-preset-es2016
deprecated: babel-preset-es2016 is moved to the babel repo
https://github.com/hzoo/babel-preset-es2016
Last synced: 3 months ago
JSON representation
deprecated: babel-preset-es2016 is moved to the babel repo
- Host: GitHub
- URL: https://github.com/hzoo/babel-preset-es2016
- Owner: hzoo
- Created: 2016-03-08T09:42:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-22T10:48:52.000Z (almost 9 years ago)
- Last Synced: 2025-02-01T16:35:58.893Z (3 months ago)
- Language: JavaScript
- Homepage: https://github.com/babel/babel/tree/master/packages/babel-preset-es2016
- Size: 4.88 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# babel-preset-es2016
## Install
```sh
$ npm install --save-dev babel-preset-es2016
```## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"presets": ["es2016"]
}
```### Via CLI
```sh
$ babel script.js --presets es2016
```### Via Node API
```javascript
require("babel-core").transform("code", {
presets: ["es2016"]
});
```