Security middleware in Node.js provides you the best pracitices of the security weapons
github.com/aharb/SecUtil
aharb/SecUtil