create account

Top 5 common and useful libraries for Node.js developers by bala41288

View this thread on: hive.blogpeakd.comecency.com
· @bala41288 ·
$9.83
Top 5 common and useful libraries for Node.js developers
I would like to say that the best thing that happened in my career was to know that it was possible to write Javascript code in the backend and run backend service completely with Javascript. Thanks to the v8 javascript engine and thanks to the Node js developers who thought about that idea. I have been enjoying this for nearly 5 years building lots of apps in my real world as well as the crypto world. 

![image.png](https://images.hive.blog/DQmNnnYrux8kj3BC2tPJHnuCkLWbBLUADD2LfwayBC6gaLo/image.png)

[Source](https://pixabay.com/vectors/node-js-logo-nodejs-javascript-736399/)

But I'm still a learner and I keep learning new things every single day. I come across lots of packages that surprise me and make my work easier. The good thing about Node js is that we don't have to write all the code we need, we can look for packages that have some support for what we would like to achieve and just include that package in our project. NPM has been a great support for every developer. Not only in the backend but also in the front-end development. After NPM became a hit there are also developers writing code completely in the front end without even having a need to have a backend. These are some of the tricks and betterment Node js has given us. 

I would like to list out some of the useful libraries which I mandatorily have in all my projects or at least most of my projects. 

## 1) Eslint

Linting is highly essential. For any type of coding we do, following a standard is very important because it will not only make the code look and feel better but it also reduces the possibility to do errors. Our code can be neat and we can easily avoid mistakes that we do sometimes without our knowledge. I always start my project with eslint and I use air-bnb as my standard for building. There are many standards out there that can be used. 

## 2) Express

This is the next important library that most of my projects have. If my project has a need to serve web pages, I go with express and it is very comfortable for me to write APIs with the capabilities of the Express framework. I know for a fact that there are also other similar libraries available but I find myself very comfortable with express because I'm used to it. 

## 3) Axios

This is the next important library that is used by people who access APIs in their projects. There are many competitive and good alternatives available but this is my choice because of the ease to work with them. It is also promise-based and undergoes regular updates. 

## 4) Dotenv

This is the next most important library that I mostly use in my projects to load the configurations. When it is a backend API or a backend service we have to load the configurations to the application from a different location other than the project directory itself. I prefer keeping the variables in .env and push it to process.env with the help of dotenv library. This is a very good utility for developers when it comes to security. 

## 5) Helmet

This is the next important library that I would say is a mandatory one for APIs. This adds more security to the APIs by adding appropriate headers. If we are using Express in our project and especially serving API endpoints in our app, I would strongly recommend having Helmet by default. 

I keep looking for similar libraries for my projects. For me, learning happens every single day and I keep discovering some good package every time I look for it. Another best thing is to check some existing projects or open-source projects. Sometimes when we check open-source projects, we end up finding out a great package that would be very useful for our projects as well. Discovery becomes easier. 

---
<table>
<tr>
<td>
<center><a href="https://discord.gg/bGmS2tE"><img src="https://images.hive.blog/DQmdthy4q4vyefBYmjMJtx7qHBmLnCfP2btiRPhRyc2U8hP/Indiaunited.png"/></a></center>
</td>
<td>
<center><a href="https://kanibot.com/"><img src="https://images.hive.blog/DQmdm8hKPz9TZL8Gd8bPyeVHm9hfgMqqiHcKL8283RBv2eH/Kanibot.png"/></a></center>
</td>
<td>
<center><a href="https://netbox.global/r/balanbx"><img src="https://images.hive.blog/DQma1a9t6rceDQYvMt6FhNkHuUUjAkQssZHrLJcXKfiQBFd/NetboxGlobal.png"/></a></center>
</td>
<tr>
<td>
<center><a href="https://r.honeygain.me/BALA4F8CD5"><img src="https://images.hive.blog/DQmdCZg8z6sxVukSdPm2kXRAhhnySqPZqK9YQ5hco65sp4n/Honeygain.png"/></a></center>
</td>
<td>
<center><a href="https://www.privex.io/?r=bala41288"><img src="https://images.hive.blog/DQmPB85eAMrQNGV7C4ykbfVTDNaiGmb8PfuiFr2AL8N8JQm/Privex.png"/></a></center>
</td>
<td>
<center><a href="https://www.publish0x.com/?a=YRdG6knybD"><img src="https://images.hive.blog/DQmcb3f3oJvjyxyScbim4gKPAnrHTyXjYtwk7HeC9aTN9Pn/Publish0x.png"/></a></center>
</td>
</tr>
</tr>
</table>


---

Posted with [STEMGeeks](https://stemgeeks.net)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 160 others
👎  
properties (23)
authorbala41288
permlinktop-5-common-and-useful-libraries-for-node-js-developers
categoryhive-163521
json_metadata{"tags":["nodejs","development","coding","technology","neoxian","palnet","stem","npm","archon","ash"],"image":["https://images.hive.blog/DQmNnnYrux8kj3BC2tPJHnuCkLWbBLUADD2LfwayBC6gaLo/image.png","https://images.hive.blog/DQmdthy4q4vyefBYmjMJtx7qHBmLnCfP2btiRPhRyc2U8hP/Indiaunited.png","https://images.hive.blog/DQmdm8hKPz9TZL8Gd8bPyeVHm9hfgMqqiHcKL8283RBv2eH/Kanibot.png","https://images.hive.blog/DQma1a9t6rceDQYvMt6FhNkHuUUjAkQssZHrLJcXKfiQBFd/NetboxGlobal.png","https://images.hive.blog/DQmdCZg8z6sxVukSdPm2kXRAhhnySqPZqK9YQ5hco65sp4n/Honeygain.png","https://images.hive.blog/DQmPB85eAMrQNGV7C4ykbfVTDNaiGmb8PfuiFr2AL8N8JQm/Privex.png","https://images.hive.blog/DQmcb3f3oJvjyxyScbim4gKPAnrHTyXjYtwk7HeC9aTN9Pn/Publish0x.png"],"links":["https://pixabay.com/vectors/node-js-logo-nodejs-javascript-736399/"],"app":"stemgeeks/0.1","format":"markdown","canonical_url":"https://stemgeeks.net/@bala41288/top-5-common-and-useful-libraries-for-node-js-developers"}
created2021-10-08 17:20:09
last_update2021-10-08 17:20:09
depth0
children5
last_payout2021-10-15 17:20:09
cashout_time1969-12-31 23:59:59
total_payout_value4.958 HBD
curator_payout_value4.872 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,821
author_reputation1,523,009,530,961,073
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,882,347
net_rshares8,666,101,721,635
author_curate_reward""
vote details (225)
@gangstalking ·
Electronic-terrorism, voice to skull and neuro monitoring on Hive and Steem. You can ignore this, but your going to wish you didnt soon. This is happening whether you believe it or not. https://ecency.com/fyrstikken/@fairandbalanced/i-am-the-only-motherfucker-on-the-internet-pointing-to-a-direct-source-for-voice-to-skull-electronic-terrorism
👎  
properties (23)
authorgangstalking
permlinkre-bala41288-top-5-common-and-useful-libraries-for-node-js-developers-20211008t172018657z
categoryhive-163521
json_metadata{"app":"hive-bot/0.6.3"}
created2021-10-08 17:20:21
last_update2021-10-08 17:20:21
depth1
children0
last_payout2021-10-15 17:20:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length343
author_reputation-67,597,107,868,724
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,882,353
net_rshares-2,576,298,758
author_curate_reward""
vote details (1)
@hivebuzz ·
Congratulations @bala41288! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@bala41288/upvotes.png?202110081817"></td><td>You distributed more than 30000 upvotes.<br>Your next target is to reach 31000 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@bala41288) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202110-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/zHjYI1k.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202110-feedback">Feedback from the October 1st Hive Power Up Day</a></td></tr></table>
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-bala41288-20211008t182543
categoryhive-163521
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-10-08 18:25:42
last_update2021-10-08 18:25:42
depth1
children0
last_payout2021-10-15 18:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,004
author_reputation369,964,757,814,703
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,883,812
net_rshares0
@indiaunited ·
Indiaunited Curation 1633717045993
This post has been manually curated by @bhattg from Indiaunited community. Join us on our [Discord Server](https://discord.gg/bGmS2tE). 

Do you know that you can earn a passive income by delegating to @indiaunited. We share 80 % of the curation rewards with the delegators. 

Here are some handy links for delegations: [100HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=186208.98274275157%20VESTS), [250HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=465522.4568568789%20VESTS), [500HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=931044.9137137578%20VESTS), [1000HP](https://hivesigner.com/sign/delegateVestingShares?delegator=&delegatee=indiaunited&vesting_shares=1862089.8274275155%20VESTS). 

Read our latest [announcement post](https://hive.blog/hive-186042/@indiaunited/indiaunited-2-0-active-again-with-a-lot-more-energy-this-time) to get more information. 

[![image.png](https://files.peakd.com/file/peakd-hive/bala41288/46eaz12N-image.png)](https://discord.gg/bGmS2tE) 

<sub>**Please contribute to the community by upvoting this comment and posts made by @indiaunited.**</sub>
properties (22)
authorindiaunited
permlinkindiaunited-1633717045993
categoryhive-163521
json_metadata{"app":"hiveblog/0.1","tags":["india","indiaunited"]}
created2021-10-08 18:17:24
last_update2021-10-08 18:17:24
depth1
children0
last_payout2021-10-15 18:17:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,251
author_reputation96,669,399,239,934
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,883,613
net_rshares0
@pixresteemer ·
<center>![pixresteemer_incognito_angel_mini.png](https://files.peakd.com/file/peakd-hive/pixresteemer/8h7BBw1w-pixresteemer_incognito_angel_mini.png)</center><center>Bang, I did it again... I just rehived your post!</center><center>!LUV</center><center><sub>2</sub></center>
properties (22)
authorpixresteemer
permlink20211008t173514230z
categoryhive-163521
json_metadata{"tags":["archon","pixresteemer"],"app":"pixresteemer"}
created2021-10-08 17:35:15
last_update2021-10-08 17:35:15
depth1
children1
last_payout2021-10-15 17:35:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length274
author_reputation121,300,017,429,266
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,882,672
net_rshares0
@luvshares ·
<div class='pull-right'><center><sup><small><small><><</small></small></a></sup></center>
    <p><a href="https://ichthys.netlify.app" style="text-decoration:none"><><</a></p></div>
    
<div class='pull-right'><center><sup>LUV</sup></center>
    <p><a href="https://peakd.com/@luvshares"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/AKU7oyCXxGwYyudB42kJ7JtoZ63bdeHvm4icoT9xdGNxA4i4BwudGyPvTQrEwPd.gif"></a></p></div>
    
<div class='pull-right'><center><sup>Connect</sup></center>
    <p><a href="https://discord.gg/K5GvNhcPqR"><img src="https://files.peakd.com/file/peakd-hive/crrdlx/23wfrFwbW2VmsmZxJXyNEKYXt8mvmEP5zenbPZFX5T6yxcF65vCp7RbNpNhLgFZiM62G1.png"></a></p></div>
    
<div class='pull-right'><center><sup>Trade</sup></center>
    <p><a href='https://tribaldex.com/trade/LUV'><img src="https://files.peakd.com/file/peakd-hive/crrdlx/AKJ1ytK1G4qgB6fMNY9iW9yL1E7bY4ooefHFwtMVKoKnyXG1EsjxrcrTFGFAbhw.png"></a></p></div>
    
<center><br> <p>@bala41288, you've been given LUV from @pixresteemer.</p> <p>Check the LUV in your H-E <a href="https://hive-engine.com/">wallet</a>. <sub>(8/10)</sub></p> </center><div></div>
properties (22)
authorluvshares
permlinkre-20211008t173514230z-20211008t173631z
categoryhive-163521
json_metadata"{"app": "beem/0.24.26"}"
created2021-10-08 17:36:33
last_update2021-10-08 17:36:33
depth2
children0
last_payout2021-10-15 17:36:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,139
author_reputation5,651,102,754,153
root_title"Top 5 common and useful libraries for Node.js developers"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id106,882,708
net_rshares0