RunKit + npm: hibp

node v10.22.0
version: 1.0.0
endpointsharetweet
const hibp = require('hibp'); hibp .pwnedPassword('password') .then(data => { if (data) { // Breach data found console.log(`Password found in ${data} breaches.`); } else { console.log('Password not found in any breaches.'); } }) .catch(err => { // Something went wrong. console.log(err.message); });
Created from: https://npm.runkit.com/hibp
Loading…

no comments

    sign in to comment