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 🙏

© 2026 – Pkg Stats / Ryan Hefner

pajama-ssg

v1.0.4

Published

SSG project

Readme

Pajama-ssg :zzz:

This is a Simple Static Site Generator (SSG) version_1.0.1

All you have to do is provide the content in a text file, type the filename on the command line and run it! This Pajama-ssg will automatically convert it to an HTML file. It's so simple and easy that you can start creating web pages right away, even in your pajamas!

Features

  • Generate static HTML file(s) from .txt file(s)
  • Read .txt files inside folder(s) and generate HTML file(s)
  • All generated HTML files are stored in the dist folder
  • Convert the file name as the title in the head tag
  • Convert the first line in the .txt file as an h1 tag
  • Convert Markdown files into HTML(With italic, bold, and horizontal rule)

Option Features

  • type -s or -stylesheet on the command line, it will be converted to a style tag link
  • type -l or -lang on the command line, it will generate the lang attribute on the root element
  • type -c or --config on the command line, it will get the flag values from your config JSON file.

Installation

Install npm package:

  • Open Terminal or CLI
  • Go to the directory/folder you would like to add the program
  • Type the npm i pajama-ssg command

npm package: https://www.npmjs.com/package/pajama-ssg

Usage

$npx pajama-ssg -i <path> or $npx pajama-ssg -input <path>

These allows you to the text file to a HTML file. Please type file name into the <path>.

$npx pajama-ssg -i <folder name>

If your text file is in a folder, you can type folder name instead of text file name.
This SSG tool checkes inside the folder.

$npx pajama-ssg -input <path> -stylesheet <URL> or $npx pajama-ssg -i <path> -s <URL>

You are able to add stylesheet. Please type the URL or path into the <URL>.

$npx pajama-ssg -c config-file.json

You are able to pass a configuration JSON file.

Help

| Option | Function | |------------------|-------------------------------------------------------| | -i, --input | input file | | -c, --config | receive a config JSON file and get flags from it | | -s, --stylesheet | input the path for generating the stylesheet path | | -l, --lang | input the language for the lang attribute | | -v, --version | display version |

Example

Input file

test.txt

Type the on command line

npx pajama-ssg -i test.txt -s https://cdn.jsdelivr.net/npm/water.css@2/out/water.css (This example uses water.css)

./test.txt

 Silver Blaze


 I am afraid, Watson, that I shall have to go,” said Holmes, as we
 sat down together to our breakfast one morning.

 “Go! Where to?”

 “To Dartmoor; to King’s Pyland.”

 I was not surprised. Indeed, my only wonder was that he had not already been mixed up in this extraordinary case, which was the one topic of conversation through the length and breadth of England.

./dist/test.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link
      rel="stylesheet"
      type="text/css"
      href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"
    />
    <title>test</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
  </head>
  <body>
    <h1>Silver Blaze</h1>

    <p>
      I am afraid, Watson, that I shall have to go,” said Holmes, as we sat down
      together to our breakfast one morning.
    </p>
    <p>“Go! Where to?”</p>
    <p>“To Dartmoor; to King’s Pyland.”</p>
  </body>
</html>

Author

Mizuho Okimoto

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contribution

Thank you for investing your time in contributing to our project! Your contribution will invigorate this wonderful open source community and create even better ones. Your contribution is greatly welcomed! For details on contributing to this repository, see the contributing guide.