1.0.2 • Published 10 years ago
shoo v1.0.2
shoo
Shoo JavaScript to the browser.
Inspired by hughsk's awesome little scat. I've just reworked it to suit my own purposes :smiley:
Huh?
- Reads JavaScript from
stdin - Wraps it in
shoo.html - Starts a server which serves
shoo.htmlon port3000(default) - Opens
http://localhost:3000so you can see your JavaScript running in a browser.
Installation
$ npm i -g shooUsage
To use the default server port (3000):
$ cat foo.js | shooYou can specify custom ports too:
$ cat foo.js | PORT=3001 shooLicense
MIT