pwn3d

0.3.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pwn3d

Weekly Downloads

1

Version

0.3.2

License

MIT

Unpacked Size

3.46 kB

Total Files

4

Last publish

Collaborators

  • lanzorg