Versatile Markdown parser designed to seamlessly convert Markdown files (.md) into HTML or ANSI Codes format. The result of parsing and converting can be displayed in the console or saved in the file.
With a user-friendly Command-Line Interface (CLI), Interpres simplifies the process of transforming Markdown documents, making it an essential tool for content creators and developers.
To activate Interpres you need next programs installed on your computer:
After setting up the environment, you have to clone repository locally.
Firstly, clone the repository by the link:
git clone https://github.com/kol-oss/interpres.gitAfter that, install the dependencies via the next command:
npm installWhen the project is installed on your computer, you can use it via next way:
node main.js <path> [-o, --out <output>] [-f, --format <format>] Description:
<path>- path from the root main.js file to .md file<output>- redirect output to the .html (html) or .txt (ansi) file<format>:html/ansi- select the output mode
You can test the application on prepared examples:
- output in the console:
node main.js ./examples/1-simple.md- output in the
.htmlfile:
node main.js ./examples/7-converted.md -o ./examples/7-converted.html- output in the
ansiformat:
node main.js ./examples/1-simple.md -f ansiYou can run testing files of Interpres via npm or directly via jest:
- production mode:
npm run test- development mode:
npm run test:devAlso you can use jest framework to execute test files by yourself:
- execute
utils.testfile:
jest utilsImplementation of unit tests in this program was exciting and (what is more important) very productive idea that helps to update code and check the main functional. Using tests, programmer can concentrate on code, not on testing and checking is everything working correctly.
To sum up, automatic tests is very powerful tool to maintain and expand your app. I also felt it as testing workflow helps me find several bugs in program logic and fix them before releasing dev version into production.
This project is licensed under the MIT License.