DEV Community

Maryam
Maryam

Posted on

Branching Out: Introducing New Features and Smarter Error Handling

Hey everyone!

I'm super excited to chat with you about a few cool updates I made to a project that turns text and md files into html. We are talking about adding some language options and making it smarter in dealing with errors. So, let’s jump in!

Speaking in Tongues - Language Options

First up, I made the tool a bit of a language whiz! Now, with a simple command, it can understand and use different languages like French and Portuguese. If you don’t choose a language, it will just use Canadian English. Pretty cool, right?
Example:

--lang fr or -l pt-BR
Enter fullscreen mode Exit fullscreen mode

Smoothing Out the Wrinkles - Better Error Handling
After my tool learned a few more languages, it was time to make it smarter. This meant teaching it what to do when it runs into problems – kind of like learning when to stop and ask for directions!

What I Picked Up Along the Way
Adding these new features and figuring out how to handle errors better was a real adventure. It was all about fitting new pieces into the puzzle and enjoying those lightbulb moments when everything clicked!

Curious to see how it all works? Feel free to check out the project and see the magic happen!

Happy exploring, and here's to more coding adventures!

Top comments (0)