https://github.com/inside/cli-babel-node
Run es6 from the command line
https://github.com/inside/cli-babel-node
Last synced: about 1 year ago
JSON representation
Run es6 from the command line
- Host: GitHub
- URL: https://github.com/inside/cli-babel-node
- Owner: inside
- Created: 2016-07-06T15:23:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-07T14:55:45.000Z (almost 10 years ago)
- Last Synced: 2025-02-01T20:25:44.037Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cli-babel-node
Run es6 from the command line
## Usage
```
npm install
npm run babel-node -- -e "console.log(42)"
```
## Usage with vim, tmux and tmuxify
Be sure you are in a tmux session, then do:
```
vim ./foo.js
:TxRun
TxRun> npm run babel-node -- %
```
Now each time you run `:TxRun` or the default mapping `mr`, it will
send the current file to babel-node.
## Usage with the babel-node REPL
```
:TxCreate
" Run npm run babel-node in the tmux split.
" Select some code you wish to send to the REPL.
" Do ms in normal mode.
```