An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# babel-register-cli

[![Build Status](https://travis-ci.org/Cap32/babel-register-cli.svg?branch=master)](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