Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

indexhtml-cli

Generate an index.html file that includes specified HTML, JS and CSS files.

Install

$ npm install indexhtml-cli

Usage

$ echo "<h1>yo</h1>" > yo.html
$ indexhtml "hello world" yo.html foo.js bar.css qux.css > index.html

Outputs:

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>hello world</title>
    <link rel="stylesheet" href="bar.css" />
    <link rel="stylesheet" href="qux.css" />
  </head>
<body>
  <h1>yo</h1>
  <script type="text/javascript" src="foo.js"></script>
</body>
</html>

About

Generate an index.html file that includes specified HTML, JS and CSS files.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages