@sooluh/subfinder
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Subdomain Finder

Subfinder is used to find, scan and collect subdomains of any domain

Install

npm i @sooluh/subfinder

Usage

const Subfinder = require("@sooluh/subfinder");
const subfinder = new Subfinder();

// callback
subfinder.lookup("domain.com", function (subdomains, error) {
  if (error) return console.error(error);

  console.log(subdomains);
});

// promise with then/catch
subfinder.lookup("domain.com")
  .then(console.log)
  .catch(console.error);

// promise with async/await
(async () => {
  try {
    const subdomains = await subfinder.lookup("domain.com");
    console.log(subdomains);
  } catch (error) {
    console.error(error);
  }
})();

License

Code licensed under MIT License.

Package Sidebar

Install

npm i @sooluh/subfinder

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

8.23 kB

Total Files

9

Last publish

Collaborators

  • sooluh