UNPKG

compromised-password

Version:

A module for checking whether or not your password has been compromised. It does this by sending a partial hash to api.pwnedpasswords.com and checking whether the response contains the suffix.

9 lines (6 loc) 171 B
const is_compromised = require('./compromised-password'); async function test () { const isPwned = await is_compromised('test'); console.log(isPwned); } test();