npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

static-dodo

v1.1.0

Published

A simple Static Site Generator CLI

Downloads

11

Readme

static-dodo

This Static Site Generator (SSG) command-line tool generates html files from text or markdown files.

A single .txt or .md file can be used as input. A folder containing .txt or .md files can also be used as input.

All the html files will be created inside a new ./dist folder in the current directory. If a ./dist folder already exists, the folder's content will be replaced with the html files created by static-dodo.

The fist line of the text will be used as the html title and will be placed inside of a <h1> tag.

A custom CSS stylesheet can be specified by using the option -s or --stylesheet.

Requirements

Requirements to install and run:

  • LTS version of NodeJS
  • NPM (comes preinstalled with NodeJS)

Installation

To install the static-dodo command line tool, use:

npm install -g static-dodo

This will allow you to use static-dodo from anywhere in your system.

Usage

Using a single file as input:

static-dodo --input file.txt
static-dodo --input file.md
static-dodo -i "File name with spaces.txt"

Using a folder as input:

static-dodo -i folder-name
static-dodo --input "Folder name with spaces"

Adding a stylesheet:

static-dodo -i [file|folder] -s [CSS Stylesheet URL]
static-dodo -i [file|folder] --stylesheet [CSS Stylesheet URL]

Using JSON file:

static-dodo -c path-to-file.json
static-dodo --config path-to-file.json

JSON Configuration

You can use a JSON configuration file to pass options to static-dodo.

The JSON file can include the options input and stylesheet. These options will override the ones passed in the command. The input option in the JSON is required.

Example JSON file configuration-file.json:

{
  "input": "sample-file.txt",
  "stylesheet": "https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"
}

Example Input

Dodo-Facts.txt
DODO Facts


The dodo (Raphus cucullatus) is an extinct flightless bird that was endemic to
the island of Mauritius, east of Madagascar in the Indian Ocean.

The first recorded mention of the dodo was by Dutch sailors in 1598.

Example Output

./dist/Dodo-Facts.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>DODO Facts</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
  </head>
  <body>
    <h1>DODO Facts</h1>

    <p>
      The dodo (Raphus cucullatus) is an extinct flightless bird that was
      endemic to the island of Mauritius, east of Madagascar in the Indian
      Ocean.
    </p>

    <p>The first recorded mention of the dodo was by Dutch sailors in 1598.</p>
  </body>
</html>

Built With

Author

License

This project is licensed under the MIT License