In this video I want to share with you my favorite node modules and libraries which I used through years of development. So let's jump right into it.
Also if you are interested in Ramda or Lodash I made courses about both this libraries and I will link them down in the description
Library #5 is slugify. It's an amazing library if you need to generate slugs from your strings. But here you might ask "It's so easy why not just do it ourselves? It's to lowercase and dashes in between". The valuable point in library is that it works correct with utf8 symbols or cyrillic which can be tricky to implement correctly so I highly recommend it.
Library #6 is prettier. The main purpose is to intent and beautify your code when you save file without lots of configurations. If you didn't use it yet just start doing it now. Actually I made a whole video about prettier. Frontend development or even development in Node brings the speed of writing code to the next level when you stop thinking how to intent your code correctly.
Library #7 is eslint. It's a library with lots of useful rules to warn you about bad code. If you are a beginner it will help you to fix and improve places of your code that might not be obvious for you. If you are working in a team eslint can help you to write code in the way how people a doing it in your specific team. So it's a valuable tool to improve your code.
Library #8 is classnames. And actually it was first created for React but is highly suitable for any applications. It allows you to generate a string of classes based on some logic which makes your code much cleaner than just inline concatenation of strings.
Library #9 is prop-types. And it was a part of React but at some point was moves out of it. What is allows is to write rules for some objects and then validate your objects. This is working nice for React props when we pass them inside components but you can validate any objects in any framework with it in declarative form.
Library #10 is commander. This is the best library in node that I saw to create console commands. Normally we just throw a bunch of scripts in package.json but if we have lots of them or difficult arguments inside it's much easier to use commander here. It helps you to create different commands, define arguments, defaults and write complex code with plain nodejs.
Call to action
So this were my 10 libraries that I used a lot thorough the years. And what libraries do you like most? Write me down in the comments below.
Also if you want to learn more about web development I have a lots of courses regarding different web technologies. I will link them down in the description box below.
If you find this video helpful, don't forget to subscribe to this channel and hit subscribe button. Thanks for watching and I see you in my next video.