button-ssg

1.0.3 • Public • Published

my-button

A Static Site Generator(SSG) for OSD600

This repo introduces a JavaScript program that convert .txt file or .md file into a HTML file

Installation

First install via: npm install

check if yargs is installed and if not run the following in your terminal: npm i yargs

Commands

node my-button.js --input Convert a text file to HTML file. After installation of yargs. You can simply run the program by the command:

node my-button.js -i "Silver Blaze.txt" or node my-button.js -i LICSENSE.md Which will generate a HTML file for the 'Silver-Blaze.txt' file or 'Silver-Blaze.md' file into the /dist folder.

Or

node my-button.js -i .\Sherlock-Holmes-Selected-Stories\ Which will generate HTML files for the Sherlock-Holmes-Selected-Stories directory into the /dist folder.

or if you are using macOS or UNIX use forward slashes node my-button.js -i ./Sherlock-Holmes-Selected-Stories/

NOTE: HTML files markdown syntax will be bold

node my-button.js -c ssg-config.json Will read the input and language options from the specified config file.

Test Site

https://my-button-ssg.vercel.app/

License

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i button-ssg

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

746 kB

Total Files

44

Last publish

Collaborators

  • lostbutton