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

Latest commit

 

History

History
72 lines (49 loc) · 4.03 KB

README.md

File metadata and controls

72 lines (49 loc) · 4.03 KB

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

⚠️