Socket
Book a DemoInstallSign in
Socket

show

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

show

serve current directory including bower dependencies

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Show

Command-line utility/middleware(TODO) for serving directories, including bower dependencies.

Motivation

I do a lot of prototyping - directory with few html files, each one of them showing different app screen. This saves me from including css and js dependencies in every file.

I also wanted to stay lightweigh, grunt sucks.

How it works

  • serves current directory on http://127.0.0.1:3900/
  • /*.html files are postprocessed, dependencies are appended to html
  • http port fallbacks to random, if 3900 is already in use (TODO)

Command-line tool

show [--port 3900] [files...]

npm install -g show

mkdir example
cd example
echo "<button class=btn>Bootstrap!</button>" > index.html

bower install --save bootstrap
show

Redefine order manually using bower.json

TODO - dependency order in bower.json should override order inferred by "bower list" (if some sub-dependency is explicitly defined as first it should be loaded first)

Additional command-line options

TODO

Middle-ware

TODO

FAQs

Package last updated on 19 Jun 2013

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