Socket
Book a DemoInstallSign in
Socket

shoo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shoo

Shoos JavaScript to the browser.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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?

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

Keywords

javascript

FAQs

Package last updated on 31 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts