An open API service indexing awesome lists of open source software.

https://github.com/bpierre/jspage

Convert a script into an HTML page containing that script.
https://github.com/bpierre/jspage

Last synced: 12 months ago
JSON representation

Convert a script into an HTML page containing that script.

Awesome Lists containing this project

README

          

# 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 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](http://pierre.mit-license.org/)

## Special thanks

Illustration made by [Raphaël Bastide](http://raphaelbastide.com/) with [scri.ch](http://scri.ch/).