i5ting_toc

5TING_TOC is an implementation tool in the Node environment for converting markdown files into web pages that can be opened in a browser

The installation of i5ting_toc

Global installation using commands:

npm i -g i5ting_toc
Copy the code

Mac global installation requires sudo: executing commands as system administrator

The use of i5ting_toc

Steps to convert an MD file:

  1. In the directory where the Markdown file to be converted is located, open the terminal

  • PWD: indicates the directory where the md file resides
  • Source_file_name: indicates the absolute path of the MD file
  • Dest_file_path: specifies the absolute path of the converted HTML file
  1. performI5ting_toc-f To convert filename. MdAfter the command, a Preview folder is generated under the files directory. In the Preview folder there is an HTML file with the same name as the converted MD file

I5ting_toc other commands

-h, --help output Usage Information Output usage information -v, --version output the version number -f, --file[filename] default is readme. md -o, --open 'open in browser Open -v, --verbose Prints detailed logsCopy the code