Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soenkekluth/bablyfill
instantly run or transpile your es6+ code without needing to install anything else but bablyfill
https://github.com/soenkekluth/bablyfill
babel es6 es7 esnext instant node polyfill run
Last synced: about 3 hours ago
JSON representation
instantly run or transpile your es6+ code without needing to install anything else but bablyfill
- Host: GitHub
- URL: https://github.com/soenkekluth/bablyfill
- Owner: soenkekluth
- Created: 2016-03-30T10:07:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T22:49:04.000Z (7 months ago)
- Last Synced: 2024-04-14T12:10:26.613Z (7 months ago)
- Topics: babel, es6, es7, esnext, instant, node, polyfill, run
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/bablyfill
- Size: 213 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/soenkekluth/bablyfill.svg?branch=master)](https://travis-ci.org/soenkekluth/bablyfill)
# bablyfill
run your es6+ node code without any installs but bablyfill
## Install
#### local
```bash
npm install [--save[-dev]] bablyfill
``````bash
yarn add bablyfill
```#### global
```bash
npm i -g bablyfill
``````bash
yarn global add bablyfill
```## Usage
### CLI
bablyfill installs 4 binaries that are only aliases for each other.
you can use each following shell command to start the magic:```bash
bablyfill
devnode
es6ify
es6
```### run es6 code
to run es6+ code you can simply call:
```bash
es6 path/to/es6-app.js
```#### transpile to stdout
```bash
es6 path/to/es6-app.js -t
```#### transpile and save es6 file
```bash
es6 path/to/es6-app.js path/lib/dest.js
```#### transpile / transform multiple es6 sources using glob or path
```bash
es6 'path/to/es6/**/*.js' path/to/lib/
es6 path/to/es6 path/to/lib/
```