bpierre / jspage

Convert a script into an HTML page containing that script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jspage

Convert a script into an HTML page containing that script.

jspage illustration

Installation

$ npm install --global jspage

Usage

  Usage: jspage [options] [file]

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -t, --title <title>  The page title
    -b, --blank          Blank page (no code preview)

  Examples:

    $ jspage foo.js > bar.html
    $ jspage < foo.js > bar.html
    $ cat foo.js bar.js | jspage -b > baz.html
    $ echo "alert('Hello World')" | jspage > foo.html

License

MIT

Special thanks

Illustration made by Raphaël Bastide with scri.ch.

About

Convert a script into an HTML page containing that script.


Languages

Language:JavaScript 84.5%Language:HTML 15.5%