In fact, I do not use many packages:
1) express
2) body and cookie-parser (sometimes I'm lazy to write middleware),
3) mongoose
4) pug
5) request
6) asynchronous
7) lodash,
8) string
everything else that I write myself and put in the "components" folder.
let most people be so lazy that they do:
const md5 = require('md5'); let data = 'something'; data = md5(data);
but I do it with crypto (it is included by default in all versions of nodejs):
const crypto = require('crypto'); let data = 'something'; data = crypto .createHash('md5') .update(data.toString()) .digest('hex');
I keep the logic not to use the package:
1) if the package is small (I always read the package files if it is unknown to me)
2) version no higher than 1.0.0 (no guarantees that will go further)
3) no recent iterations (commits) in the repository
btw nsp check my application says: (+) No known vulnerabilities found (:
source share