@rhandke/password-checker

Check password against the haveibeenpwned API

Usage no npm install needed!

<script type="module">
  import rhandkePasswordChecker from 'https://cdn.skypack.dev/@rhandke/password-checker';
</script>

README

Password Checker

Check a password against the haveibeenpwned API.

Installation

npm install @rhandke/password-checker

Usage

import PasswordChecker from "@rhandke/password-checker";

const passwordChecker = new PasswordChecker();
passwordChecker.hasBeenLeaked('password').then(response => {
  console.log(response);
})