Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdesl/simple-html-index
a simple HTML index through stream
https://github.com/mattdesl/simple-html-index
Last synced: about 2 months ago
JSON representation
a simple HTML index through stream
- Host: GitHub
- URL: https://github.com/mattdesl/simple-html-index
- Owner: mattdesl
- License: mit
- Created: 2015-06-19T16:03:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-16T15:29:03.000Z (about 8 years ago)
- Last Synced: 2024-04-25T06:02:43.768Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 32
- Watchers: 4
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# simple-html-index
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)
A tiny through stream that returns a bare-bones HTML5 template with an optional
`` and `` in the head and `` entry-point in the body.## Example
In `html.js`
```js
var html = require('simple-html-index')html({ title: 'hello', entry: 'bundle.js' })
.pipe(process.stdout)
```Now run `node html.js > index.html` and you would end up with a file that looks like this: (after formatting)
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>hello</title>
<meta charset="utf-8">
</head>
<body>
<script src="bundle.js">