Skip to content

Commit

Permalink
chore: drop support for Node 16 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabnguess committed Nov 6, 2023
1 parent 43ee606 commit d2ee12a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]
fail-fast: false
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# NodeSecure domain-check

![version](https://img.shields.io/badge/dynamic/json.svg?style=for-the-badge&url=https://raw.githubusercontent.com/NodeSecure/domain-check/main/package.json&query=$.version&label=Version)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge)](https://github.com/NodeSecure/domain-check/graphs/commit-activity)
[![OpenSSF
Expand All @@ -9,7 +10,8 @@ Scorecard](https://api.securityscorecards.dev/projects/github.com/NodeSecure/dom
NodeSecure (npm) domain-check analysis package

## Requirements
- [Node.js](https://nodejs.org/en/) v16 or higher

- [Node.js](https://nodejs.org/en/) v18 or higher

## Getting Started

Expand All @@ -24,9 +26,9 @@ $ yarn add @nodesecure/domain-check
## Usage example

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

const myDomain = 'google.com';
const myDomain = "google.com";

const domainExpirationDate = await whois(myDomain);
const mxRecords = await resolveMxRecords(myDomain);
Expand All @@ -37,12 +39,15 @@ const mxRecords = await resolveMxRecords(myDomain);
### whois(domain: string, server = "whois.iana.org"): string

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

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

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"exports": "./src/index.js",
"main": "./src/index.js",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"types": "./index.d.ts",
"scripts": {
"dev": "node ./src/index.js",
Expand Down

0 comments on commit d2ee12a

Please sign in to comment.