Skip to content

DerekJxy/a1-ssg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSG(Static Site Generator)

SSG is a program that creating html file with a text file.

features

  • command flags

    • -v or -version : show its current version
    • -h or -help : show instruction
    • -i or -input: allow file or folder as input
  • create html file from input (a text file or all the text file in the input folder)

  • create html file from input (a md file or all the md file in the input folder)

Prerequisite

  • open your favorite terminal
  • Make sure you are in the a1-ssg folder
  • type the following command
npm i [enter]

Uasge

  • To see the version
 node . -v
  • To see the help
 node . -h
  • To generate html file (example commands)

    • file name "abc.txt"

       node . -i 'abc.txt'
    • folder name "abc"

       node . -i abc
    • file name "abc.md"

       node . -i 'abc.md'

About

OSD600 A1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages