Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
/ domain-check Public archive

Node.js module which helps you to check informations about domains

License

Notifications You must be signed in to change notification settings

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

⚠️