My first TIL for Text to HTML converter

jilesh980

Jilesh980

Posted on September 19, 2023

My first TIL for Text to HTML converter

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:

  1. Convert a single .txt file into an HTML file effortlessly.
  2. Process entire directories of .txt files to generate corresponding HTML files.
  3. Wrap each paragraph in

    tags for clear formatting.

  4. Passing -h or --help command prints help menu.
  5. Passing -v or --version command prints version and name of the tool.
  6. 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 
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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.

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
jilesh980
Jilesh980

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

ยฉ TheLazy.dev

About