Anonymously query the haveibeenpwned.com API to fetch the number of times a password has appeard in breached data sets using K-anonymity
npm install --save hibp-checkerconst checkPassword = require('hibp-checker');
const breachCount = await checkPassword('hunter2');
console.log(`Breached ${breachCount} times`);> hibp-checker
Enter password to check: *********
Password frequency: 123