
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Watch it work
Static
Site
Generator
This tool allows you to generate web pages from text files.
You can specify a file/folder to generate into valid html pages. They will appear in ./dist*.
You can also change the styles.css to fit your preferences, it will get copied over to ./dist and will be applied to all webpages there.
It also recognizes the first paragraph as a title.
You should have a .txt or .md file or a folder of such files, or instead "Sherlock Holmes Selected Stories" folder with txt contents present for testing this tool.
Make sure to have node.js installed on your system.
Then, in the repository run
npm install
If you ever get an error of a missing node module, you can always look at its name (it will have a message Error: Cannot find module module) and run
npm install **module**
Run in your console
node index.js
You can specify additional options through arguments like so:
node index.js -argument --argument input
To get quick instructions on the arguments do:
-h or --help
To check the version of the app:
-v or --version
To change language of the page (it's set as en by default. It will be put in as an attribute to <html>, such as <html lang="en"> ):
-l or --lang
To change the default directory from where the files would be read or the specific file:
-i or --input
To specify a config file to read from:
-c or --config
Example of usage:
node index.js -i cats
Will convert everything from folder cats to html pages.
Please note you shouldn't add ./ in the beginning, since the app will do it for you
If you wish so, you also can:
-hi or --hello
This static site generator now reads the md file and converts them to html files with limited styling.
# to <h1> and other headers_ to <i>__ to <b>--- to <hr>Example of usage:
will be converted into the html format for heading tag.
<h1> SSG Node </h1>
You can now specify a config file to automatically run options specified there.
It has to be in a JSON format and can take in 3 options:
"input":
"output":
"lang":
FAQs
Static Site Generator in Node js
We found that ssgnode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.