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.
- Host: GitHub
- URL: https://github.com/bpierre/jspage
- Owner: bpierre
- Created: 2014-05-30T15:53:10.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T17:25:29.000Z (over 7 years ago)
- Last Synced: 2025-06-13T10:56:11.331Z (12 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jspage
Convert a script into an HTML page containing that script.

## 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/).