This package can be used as password requirement, but should be combined with length checking. Some passwords are not listed as popular because they don't meet length requirement in many systems. For example
1234 is listed as popular password, but
123 is not.
npm install common-password
$ node ./example.js passw0rd password is too easy to guess not OK $ node ./example.js eiGoh8ou OK