Socket
Socket
Sign inDemoInstall

create-webpage

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-webpage

VanillarJS Single Page Web Application Template Generator


Version published
Maintainers
1
Created
Source

genpage

Single Page Web Application Template Generator.

Generate an introductory webpage using package.json and README.md

Example

  • https://elements-x.github.io/touch-x/
  • https://elements-x.github.io/genpage/

Usage

$ npm i genpage -D
$ npx genpage
* Start generating web page for genpage
? Project Name genpage
? Output Directory docs
? Description VanillarJS Single Page Web Application Template Generator
? Version 0.2.0
? Repo. URL https://github.com/elements-x/genpage
? Issue URL https://github.com/elements-x/genpage/issues
? License MIT
... processing message ...

To see the generated page

$ cd docs && npx http-server -o

You can also generate a single file for any markdown file.

$ npx genpage README.md 
$ npx genpage README.md > docs/pages/readme.html # to update readme.html

To set it as Github pages

Generated webpage is fully working as a SPA; Single Page Application. You can use it as your github page without any settings or modifiation.

To set your github page with your generated docs directory,

  1. Goto settings -> pages
  2. Select main branch, and set directory as '/docs', then `Save'. image

How It Works

  1. Read your package.json and README.md
  2. Get output directory from user
  3. Generate a static web app into the output directory(default docs)

FAQs

Package last updated on 24 Oct 2021

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