SSG for generating html

OSD600 feels like a subject that composes a program (?) on a specific topic by mobilizing everything that has been learned so far. In the first week, instructions were released to create release 0.1, and I tried to tailor the code as best as possible t…


This content originally appeared on DEV Community and was authored by jsong89

OSD600 feels like a subject that composes a program (?) on a specific topic by mobilizing everything that has been learned so far. In the first week, instructions were released to create release 0.1, and I tried to tailor the code as best as possible to the requirements of that list.

When creating the api, I chose node js, which I was most confident and used the most.

After that, I created a repository in Git and named it "jun-ssg" after me. :)

The SSG for text file!

Open Source Project 0.1

jun-ssg is a simple html generator. You can extract your file contents and put them as HTML content.

How to use?

Before start to use
After downloaded files delete the package-lock.json
run "npm install" at terminal
You can dowload and run the repository files -node src/app.js

or

can run by npm

npm i -g https://github.com/juuuuuuun/jun-ssg.git

Example statements
Options:

-i, --input Input a file or a directory [string] [required]

-o, --output Specify the output directory [string]

-s, --stylesheet Import css URL [string]

-v, --version Show version number [boolean]

-h, --help Show usage information [boolean]

Examples: After install my package, jun-ssg -i 'Silver Blaze.txt'

Example

  1. Cloning my repository1
  2. After complete the cloning terminal should show like this2
  3. Change the dir location to the cloned folder3
  4. Run "npm install" to use pre-set npm modules4

  5. Try to run "node src/app.js" if everything is fine the terminal should show how to use this api.5

  6. Type any command which is set, but in this case will run -input option type "node src/app.js -i 'Sherlock-Holmes-Selected-Stories'".6

  7. You can check generated htmls.7

  8. Also, you can apply any css stylesheet like this way.8

  9. Then, you can see the htmls with nice design :)9

  10. Text file what you wished.10


This content originally appeared on DEV Community and was authored by jsong89


Print Share Comment Cite Upload Translate Updates
APA

jsong89 | Sciencx (2021-09-18T03:17:09+00:00) SSG for generating html. Retrieved from https://www.scien.cx/2021/09/18/ssg-for-generating-html/

MLA
" » SSG for generating html." jsong89 | Sciencx - Saturday September 18, 2021, https://www.scien.cx/2021/09/18/ssg-for-generating-html/
HARVARD
jsong89 | Sciencx Saturday September 18, 2021 » SSG for generating html., viewed ,<https://www.scien.cx/2021/09/18/ssg-for-generating-html/>
VANCOUVER
jsong89 | Sciencx - » SSG for generating html. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/18/ssg-for-generating-html/
CHICAGO
" » SSG for generating html." jsong89 | Sciencx - Accessed . https://www.scien.cx/2021/09/18/ssg-for-generating-html/
IEEE
" » SSG for generating html." jsong89 | Sciencx [Online]. Available: https://www.scien.cx/2021/09/18/ssg-for-generating-html/. [Accessed: ]
rf:citation
» SSG for generating html | jsong89 | Sciencx | https://www.scien.cx/2021/09/18/ssg-for-generating-html/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.