shoo

1.0.2 • Public • Published

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 😃

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

Package Sidebar

Install

npm i shoo

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • tanem