Wondering what’s next for npm?Check out our public roadmap! »

bs-cli

1.0.5 • Public • Published

bs-cli

bs is a simple CLI front-end for browser-sync.

bs hello.html

starts browser-sync and displays the specified HTML. This is equivalent to:

browser-sync start --server --startPath hello.html --files '*'

Root directory

bs uses the current directory as the root directory.

bs dir/hello.html

starts browser-sync at the current directory, and starts dir/hello.html.

Use -r to specify the root directory.

cd dir
bs -r .. hello.html

starts browser-sync with the parent directory as the root.

Preprocessors

Bikeshed

Files with .bs extensions are preprocessed by bikeshed, or its online service if not installed locally.

cd csswg-drafts/a-spec
bs -r .. Overview.bs

Graphviz/dot

Files with .dot extensions are preprocessed by Graphviz. Graphviz must be installed locally in PATH.

Install

npm -g install bs-cli

or from github:

npm -g install kojiishi/bs-cli

Install

npm i bs-cli

DownloadsWeekly Downloads

17

Version

1.0.5

License

ISC

Last publish

Collaborators

  • avatar