0.3.2 • Published 5 years ago
pwn3d v0.3.2
pwn3d
Introduction
Get pwned accounts from the haveibeenpwned API.
Installation
npm i pwn3d
Usages
From Node:
const pwn3d = require("pwn3d"); (async () => { try { const email = "admin@example.com"; const pwnedAccounts = await pwn3d.getPwnedAccounts(email); pwnedAccounts.length > 0 ? console.table(pwnedAccounts, ["Name"]) : console.log("No pwned accounts were found!"); } catch (error) { return; } })();
From CLI:
pwn3d admin@example.com