https://github.com/azer/indexhtml
Generate a customized index.html file
https://github.com/azer/indexhtml
Last synced: 11 months ago
JSON representation
Generate a customized index.html file
- Host: GitHub
- URL: https://github.com/azer/indexhtml
- Owner: azer
- Created: 2015-05-20T03:54:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-20T03:54:18.000Z (about 11 years ago)
- Last Synced: 2024-11-22T04:07:25.157Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## indexhtml
Generate a customized index.html file
## Install
```bash
$ npm install indexhtml
```
## Usage
```js
var indexhtml = require('indexhtml')
indexhtml({
title: 'hello world',
js: 'bundle.js', // or [..] is ok
css: ['default.css', 'pretty.css'], // or 'single.css' is ok
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
content: '
yo
'
})
```
will output:
```html
hello world
yo
```