New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-readme-to-html

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-readme-to-html

Generate a simple HTML page based on a single markdown file

latest
Source
npmnpm
Version
1.0.11
Version published
Maintainers
0
Created
Source

GitHub Readme to HTML Static Site

NPM module to convert GitHub markdown to HTML with GitHub-like styling and static assets. Output is ready to serve via static file hosting like Netlify with a push of a button.

Install

npm install github-readme-to-html

Run

Usage: npx github-readme-to-html [options]

Options:
  -i, --input <filename>   The input readme/markdown file (default: "README.md")
  -d, --dir <dirname>      The output directory (default: "./dist")
  -o, --output <filename>  The output HTML file (default: "index.html")
  -s, --style <mode>       The style mode to use, either 'light' or 'dark' (default: "light")
  -t, --title <title>      The page title (default: "Read Me")
  -h, --help               display help for command

Output

All output goes to ./dist

- dist/
  - index.html
  - assets/
    - .
    - .
    - .

Example - Default Light Mode

Input: ORIGINAL.md

Output: https://github-readme-to-html.netlify.app/

Example - Dark Mode

Input: ORIGINAL.md

Output: https://github-readme-to-html-darkmode.netlify.app/

Testing

To test local changes:

node ./index.js 

Change Log

  • 1.0.11 - jrnewton/github-readme-to-html#1 - Support for dark mode
  • 1.0.10 - jrnewton/github-readme-to-html#13 - Breaks on npx: assumes highlight.js is available locally
  • 1.0.9 - jrnewton/github-readme-to-html#9 - highlightjs support
  • 1.0.8 - update dependency
  • 1.0.7 - jrnewton/github-readme-to-html#5 - fix newline issue when using yarn
  • 1.0.6 - jrnewton/github-readme-to-html#3 - footnote support
  • 1.0.5 - jrnewton/github-readme-to-html#4 - resize image support
  • 1.0.4 - jrnewton/github-readme-to-html#2 - output filename support

This project is based on https://github.com/KrauseFx/markdown-to-html-github-style

Keywords

github

FAQs

Package last updated on 04 Jan 2025

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