JSPM

@supercat1337/domain-extractor

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q16124F
  • License MIT

Package Exports

  • @supercat1337/domain-extractor
  • @supercat1337/domain-extractor/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@supercat1337/domain-extractor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Domain Extractor

This tool extracts domains from an X.509 certificate, helping you identify domains linked to a given IP address or URL.

Usage

// @ts-check

import { extractDomainsFromCertificate } from "@supercat1337/domain-extractor";

let result = await extractDomainsFromCertificate("8.8.8.8");
console.log(JSON.stringify(result));
// Outputs: {"url":"8.8.8.8","domains":["dns.google","dns.google.com","8888.google","dns64.dns.google"],"error":null}

let result2 = await extractDomainsFromCertificate("https://google.com");
console.log(JSON.stringify(result2));
// Outputs:
// {
//     url: "https://google.com",
//     domains: [
//         "google.com",
//         "appengine.google.com",
//         "bdn.dev",
//         "origin-test.bdn.dev",
//         "cloud.google.com",
//         "crowdsource.google.com",
//         "datacompute.google.com",
//         "google.ca",
//         "google.cl",
//         "google.co.in",
//         "google.co.jp",
//         "google.co.uk",
//         "google.com.ar",
//         "google.com.au",
//         "google.com.br",
//         "google.com.co",
//         "google.com.mx",
//         "google.com.tr",
//         "google.com.vn",
//         "google.de",
//         ...
//     ],
//     error: null
// }