Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lemmon/babel-env-cli

Babel command line interface for global use, including preset-env as default.
https://github.com/lemmon/babel-env-cli

babel cli compiler ecmascript javascript

Last synced: 17 days ago
JSON representation

Babel command line interface for global use, including preset-env as default.

Awesome Lists containing this project

README

        

# babel-env

CLI interface for Babel + @babel/preset-env.

## Install

This package is meant to be installed globally.

```sh
npm install babel-env-cli --global
```

## Usage

```
Usage
$ babel-env

Options
-h, --help Show this help
-o, --output Output file
-w, --watch Watch JS source directory for changes

Example
$ babel-env src/input.js -o dist/output.js
$ babel-env src/input.js -o dist/output.js --watch
```

## Related

- [`Babel`](https://babeljs.io/)
- [`@babel/core`](https://babeljs.io/docs/en/babel-core)
- [`@babel/preset-env`](https://babeljs.io/docs/en/babel-preset-env)
- [`@babel/cli`](https://babeljs.io/docs/en/babel-cli)

## License

MIT