https://github.com/thomd/js-instant-eval
js(1) is a very simple shell script that watches and evaluates javascript using node or rhino javascript engine
https://github.com/thomd/js-instant-eval
Last synced: 7 months ago
JSON representation
js(1) is a very simple shell script that watches and evaluates javascript using node or rhino javascript engine
- Host: GitHub
- URL: https://github.com/thomd/js-instant-eval
- Owner: thomd
- Created: 2014-09-21T14:47:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T21:33:50.000Z (about 10 years ago)
- Last Synced: 2025-10-21T18:44:12.322Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-instant-eval
[](https://travis-ci.org/thomd/js-instant-eval)
`js(1)` is a shell script that **watches** and **evaluates** javascript using [node][1] or [rhino][2] javascript engine.
## Install
brew install node
brew install rhino
make test
make install
On `Cygwin` you need to set `CYGWIN=nodosfilewarning` in the global Windows environment (Control Panel > System > Advanced > Environment
Variables).
## Usage
Default javascript engine is node
js script.js
js --engine rhino script.js
## on ES6
`es(1)` is an experimental evaluation of ES6. Install [babel][3] and es2015 preset:
npm i babel-cli babel-preset-es2015 babel-preset-react
es script.js
[1]: http://nodejs.org/
[2]: https://developer.mozilla.org/de/docs/Rhino
[3]: https://babeljs.io/