@nodesecure/domain-check
Version:
NodeSecure (npm) domain-check analysis package
55 lines (39 loc) • 2.8 kB
Markdown
# NodeSecure domain-check

[](https://github.com/NodeSecure/domain-check/commit-activity)
[](https://github.com/NodeSecure/domain-check/blob/main/LICENSE)

NodeSecure (npm) domain-check analysis package
## Requirements
- [Node.js](https://nodejs.org/en/) v16 or higher
## Getting Started
This package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).
```bash
$ npm i @nodesecure/domain-check
# or
$ yarn add @nodesecure/domain-check
```
## Usage example
```js
import { whois, resolveMxRecords } from '@nodesecure/domain-check';
const myDomain = 'google.com';
const domainExpirationDate = await whois(myDomain);
const mxRecords = await resolveMxRecords(myDomain);
```
## Contributors ✨
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/Kawacrepe"><img src="https://avatars.githubusercontent.com/u/40260517?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vincent Dhennin</b></sub></a><br /><a href="https://github.com/NodeSecure/domain-check/commits?author=Kawacrepe" title="Code">💻</a> <a href="https://github.com/NodeSecure/domain-check/pulls?q=is%3Apr+reviewed-by%3AKawacrepe" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/NodeSecure/domain-check/commits?author=Kawacrepe" title="Documentation">📖</a> <a href="https://github.com/NodeSecure/domain-check/issues?q=author%3AKawacrepe" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://www.linkedin.com/in/thomas-gentilhomme/"><img src="https://avatars.githubusercontent.com/u/4438263?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gentilhomme</b></sub></a><br /><a href="https://github.com/NodeSecure/domain-check/commits?author=fraxken" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->