My first TIL for Text to HTML converter
Jilesh980
Posted on September 19, 2023
Hi there! I'm excited to introduce my latest project, TIL-Netlify ๐. This is my very own open-source command-line interface (CLI) tool that allows you to effortlessly convert plain text files into beautifully formatted HTML files. But first, a little background:
Node-TILify
Node-TILify stands for "Today I Learned" and "Node.js," which are at the core of this project. It's an open-source tool I developed to make it easier for everyone to share and present their learnings, insights, or any kind of textual content in a more visually appealing way.
๐ **[Link to the Repository] https://github.com/Jilesh980/Text-To-HTML
Installation:
1) Make sure to install the proper dependencies for the project before executing: npm install
2) Clone the repository in your local machine: git clone https://github.com/Jilesh980/till-tool.git
FEATURES:
- Convert a single .txt file into an HTML file effortlessly.
- Process entire directories of .txt files to generate corresponding HTML files.
- Wrap each paragraph in
tags for clear formatting.
- Passing -h or --help command prints help menu.
- Passing -v or --version command prints version and name of the tool.
- Optional Feature #2: When you include the -o or --output command followed by a path to an output directory, it saves all the HTML files generated to that specified directory. In case the directory doesn't already exist, the tool will create it automatically.
How to produce the output
The command which takes .txt file and convert it to .html file and store it in ./til directory.
node src/index.js document.txt
The command which take .txt file, convert it into .html file and store in the custom directory
node src/index.js document.txt -o custom
Conclusion: Node-TILify is not just a tool; it's a bridge between the world of text and the web, designed to make sharing knowledge more accessible and visually appealing. With its user-friendly features and versatility, it's an open-source gem waiting to amplify your wisdom. So, take it for a spin, contribute to its growth, and let's collectively enhance the way we share and learn from one another.
Posted on September 19, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024
November 30, 2024