Skip to content

NodeSecure/domain-check

Repository files navigation

NodeSecure domain-check

version Maintenance OpenSSF Scorecard mit build

NodeSecure (npm) domain-check analysis package

Requirements

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @nodesecure/domain-check
# or
$ yarn add @nodesecure/domain-check

Usage example

import { whois, resolveMxRecords } from "@nodesecure/domain-check";

const myDomain = "google.com";

const domainExpirationDate = await whois(myDomain);
const mxRecords = await resolveMxRecords(myDomain);

API

whois(domain: string, server = "whois.iana.org"): string

resolveMxRecords(domain: string): (Array | { error: string, context: Error })

An array of MX exchanges, or an object with error information for the given domain.

Contributors ✨

All Contributors

Thanks goes to these wonderful people (emoji key):

Vincent Dhennin
Vincent Dhennin

💻 👀 📖 🐛
Gentilhomme
Gentilhomme

💻
Kouadio Fabrice Nguessan
Kouadio Fabrice Nguessan

🚧
zwOk9
zwOk9

⚠️