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 🙏

© 2024 – Pkg Stats / Ryan Hefner

gmot-ssg

v1.0.3

Published

Gustavo Martinez SSG for OSD600

Downloads

10

Readme

GMOT-SSG - Static Site Generator

What this tool does?

This tool will receive a input txt file(files) or directory(directories) and transform it in an HTML page(pages).

How to Install?

To install our package, you need to type the following line in your console:

npm i gmot-ssg

What it does?

Example:

example.txt:

"I had called upon my friend, Mr. Sherlock Holmes, one day in the autumn
of last year, and found him in deep conversation with a very stout,
florid-faced, elderly gentleman, with fiery red hair. With an apology
for my intrusion, I was about to withdraw, when Holmes pulled me
abruptly into the room and closed the door behind me."

will become:

example.html

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>example</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

</head>
<body>
  <h1>example</h1>
  <p> "I had called upon my friend, Mr. Sherlock Holmes, one day in the autumn
    of last year, and found him in deep conversation with a very stout,
    florid-faced, elderly gentleman, with fiery red hair. With an apology
    for my intrusion, I was about to withdraw, when Holmes pulled me
    abruptly into the room and closed the door behind me."</p>

</body>
</html>

How do I use it?

  To use this tool, you need to type in the CLI the following:
  npx gmot-ssg -i <file> -o <output> -s <stylesheet>

  examples:
  npx gmot-ssg -i text.txt text2.txt -o C:\user\example\output -s stylesheetlink
  npx gmot-ssg -input directory1 directory2 -output outputFolder  -stylesheet stylesheetlink
  npx gmot-ssg -i text.txt directory1 text2.txt C:\user\example\directory2
  npx gmot-ssg -c ssg-config.json

By default, this tool will create a "dist" directory in its folder where the output will be.

What options does it have?

This tool has an
-s --stylesheet option, which will take your input stylesheet link and place it inside the HTML.
-o --output option, this option will place the output in your custom output directory.
-v --version option, will display the current version of the program.
-l --language option, will let you set the language for the HTML.
-h --help option, will display the usage, options, and examples.
-c --config option, will read the config JSON file for arguments instead of command line.

What optional features does it have?

<Title> and <h1> tags
 -s -stylesheet for custom css links
 -o --output for custom output paths
 -l --language for custom HTML language, default is en-CA.
 It also accepts mixed input, txt files, md files and directories.

Additional support for md (markdown) files

| MD File | HTML File | Webpage | | ------------------------------- | ------------------------------------------ | ----------------------------- | | **Bold Text** | <b>Bold Text</b> | Bold Text | | *Italic Text* | <i>Italic Text</i> | Italic Text | | # H1 Heading | <h1>H1 Heading</h1> | H1 Heading | | ## H2 Heading | <h2>H2 Heading</h2> | H2 Heading | | [GitHub](https://github.com/) | <a href="https://github.com/">GitHub</a> | GitHub | | --- | <hr /> | |

For Example (md files):

README Excerpt


# [GMOT-SSG](https://github.com/GMOTGIT/GMOT-SSG)

OSD600 0.1 - SSG

## SSG - Static Site Generator

## What this tool does?

This tool will receive a **input txt file(files)** or **directory(directories)** and transform it in an *HTML page(pages)*.

will become:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>README Excerpt</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">

</head>
<body>
<h1>README Excerpt</h1>
<p><h1><a href="https://github.com/GMOTGIT/GMOT-SSG">GMOT-SSG</a></h1></p>
<p>OSD600 0.1 - SSG</p>
<p><h2>SSG - Static Site Generator </h2></p>
<p><h2>What this tool does?</h2></p>
<p>This tool will receive a <b>input txt file(files)</b> or <b>directory(directories)</b> and transform it in an <i>HTML page(pages)</i>.</p>

</body>
</html>