1.0.2 • Published 8 years ago

shoo v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

shoo

npm version npm downloads dependency status

Shoo JavaScript to the browser.

Inspired by hughsk's awesome little scat. I've just reworked it to suit my own purposes :smiley:

Huh?

  1. Reads JavaScript from stdin
  2. Wraps it in shoo.html
  3. Starts a server which serves shoo.html on port 3000 (default)
  4. Opens 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