Libraries

morgan

npm i morgan

HTTP request logger middleware for node.js

slugify

npm i slugify

slugifys a string. To maintain slugs in url

validator

npm i validator

To validate the strings

ndb -- node debugger

npm i ndb

To debug the node code

bcryptjs

npm i bcryptjs

For encrypting or hashing the passwords

JSON web Token

npm i jsonwebtoken

To implement Json Web Tokens

Express rate limit

npm i express-rate-limit

To limit the requests from an IP address.

helmet

npm i helmet

To set security HTTP headers

express-mongo-sanitize

npm i express-mongo-sanitize

For Data sanitization

xss-clean

npm i xss-clean

To clean input malicious html code with javascript code attached

hpp - http parameter pollution

npm i hpp

To prevent parameter pollution like sort=duration&sort=price To prevent duplicates in the query string