https://github.com/cap32/babel-register-cli
Just like babel-node, but using babel-register. You could use it in production.
https://github.com/cap32/babel-register-cli
babel babel-node babel-register cli es2015 es2016 es2017 es6 es7 node
Last synced: about 1 year ago
JSON representation
Just like babel-node, but using babel-register. You could use it in production.
- Host: GitHub
- URL: https://github.com/cap32/babel-register-cli
- Owner: Cap32
- License: mit
- Created: 2016-01-28T03:38:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T07:02:45.000Z (almost 9 years ago)
- Last Synced: 2025-04-22T12:12:23.656Z (about 1 year ago)
- Topics: babel, babel-node, babel-register, cli, es2015, es2016, es2017, es6, es7, node
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-register-cli
[](https://travis-ci.org/Cap32/babel-register-cli)
Just like babel-node, but using babel-register. So you could use it in production.
## Why
- You should not be using `babel-node` in production. [https://babeljs.io/docs/usage/cli/](https://babeljs.io/docs/usage/cli/)
- `babel-register` is fussy. See below for detail.
### Before
```js
// index.js
require('babel-register');
require('./my-es6.js');
```
```shell
node index.js
```
### Now
```shell
babel-register my-es6.js
```
## Usage
Just the same with `node`.
## Installation
Using [npm](https://www.npmjs.com/):
$ npm install babel-register-cli -g
## License
MIT