https://github.com/tanem/shoo
:dash: Shoo JavaScript to the browser.
https://github.com/tanem/shoo
Last synced: 3 months ago
JSON representation
:dash: Shoo JavaScript to the browser.
- Host: GitHub
- URL: https://github.com/tanem/shoo
- Owner: tanem
- License: mit
- Created: 2015-10-09T00:11:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-30T19:47:32.000Z (over 6 years ago)
- Last Synced: 2025-10-09T05:03:25.921Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# shoo
[](https://www.npmjs.com/package/shoo)
[](https://www.npmjs.com/package/shoo)
[](https://david-dm.org/tanem/shoo)
[Shoo](http://dictionary.reference.com/browse/shoo) JavaScript to the browser.
Inspired by [hughsk](https://github.com/hughsk)'s awesome little [scat](https://github.com/hughsk/scat). I've just reworked it to suit my own purposes :smiley:
## Huh?
1. Reads JavaScript from `stdin`
2. Wraps it in [`shoo.html`](lib/shoo.html)
3. Starts a server which serves `shoo.html` on port `3000` (default)
4. [Opens](https://github.com/domenic/opener) `http://localhost:3000` so you can see your JavaScript running in a browser.
## Installation
```
$ npm i -g shoo
```
## Usage
To use the default server port (`3000`):
```
$ cat foo.js | shoo
```
You can specify custom ports too:
```
$ cat foo.js | PORT=3001 shoo
```
## License
MIT