Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-html-index

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-html-index

a simple HTML index through stream

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.6K
increased by4.16%
Maintainers
1
Weekly downloads
 
Created
Source

simple-html-index

stable

A tiny through stream that returns a bare-bones HTML5 template with an optional <title> in the head and <script> entry-point in the body.

Example

In html.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)

<!doctype html>
<head>
  <title>hello</title>
  <meta charset="utf-8">
  </head>
<body>
  <script src="bundle.js"></script>
</body>
</html>

Usage

NPM

License

MIT, see LICENSE.md for details.

Keywords

FAQs

Package last updated on 19 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc