Member-only story
7 NPM Packages You Should Consider Knowing
You might love these packages
Npm stands for node package manager. When you are working on JavaScript, you can use npm to install other people's code packages into your project. There are hundreds of thousands of packages available on npm.
In this article, I’m going to talk about essential libraries.
1. date-fns
The first library I want to talk about is date-fns. Date-fns is also known as date functions. This library is a collection of hundreds of functions.
With these functions, you can add days to a date, compare dates, format dates, etc. You can get anything related to the Date
function in this library.
By default, JavaScript dates are not easy to use. They don’t have that much functionality built into them. Date-fns is a library that adds all the functions that you need.
Here is some sample code: