domainstat 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +10 -4
- package/package.json +7 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Justice Ogbonna
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DomainStat
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/namewiz/domainstat/actions/workflows/build.yml)
|
|
4
|
+
[](https://github.com/namewiz/domainstat/actions/workflows/test.yml)
|
|
5
|
+
[](https://www.npmjs.com/package/domainstat)
|
|
6
|
+
[](https://github.com/namewiz/domainstat/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DomainStat is a lightweight TypeScript/JavaScript library for checking
|
|
4
10
|
whether domain names are unregistered (available to register). It queries several data
|
|
5
11
|
sources in a "first good win" order – DNS (DoH), RDAP and finally WHOIS API – and returns a
|
|
6
12
|
uniform result describing the domain's status.
|
|
@@ -22,13 +28,13 @@ consistent behavior and simpler usage. The library runs with fetch-based adapter
|
|
|
22
28
|
## Installation
|
|
23
29
|
|
|
24
30
|
```bash
|
|
25
|
-
npm install
|
|
31
|
+
npm install domainstat
|
|
26
32
|
```
|
|
27
33
|
|
|
28
34
|
## Quick Start
|
|
29
35
|
|
|
30
36
|
```ts
|
|
31
|
-
import { check, checkBatch, checkBatchStream, checkSerial, checkParallel, type DomainStatus } from '
|
|
37
|
+
import { check, checkBatch, checkBatchStream, checkSerial, checkParallel, type DomainStatus } from 'domainstat';
|
|
32
38
|
|
|
33
39
|
const res = await check('example.com');
|
|
34
40
|
// { domain: 'example.com', availability: 'registered', resolver: 'dns.doh', raw: {...} }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domainstat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Extremely fast domain status checker library using DoH, RDAP and WHOIS API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,19 +13,20 @@
|
|
|
13
13
|
"format": "prettier --write .",
|
|
14
14
|
"format:check": "prettier --check ."
|
|
15
15
|
},
|
|
16
|
+
"homepage": "https://github.com/namewiz/domainstat",
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/
|
|
19
|
+
"url": "git+https://github.com/namewiz/domainstat.git"
|
|
19
20
|
},
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/
|
|
22
|
+
"url": "https://github.com/namewiz/domainstat/issues"
|
|
22
23
|
},
|
|
23
|
-
"author": "Justice Ogbonna",
|
|
24
|
-
"keywords": [],
|
|
24
|
+
"author": "Justice Ogbonna <dev@justiceo.com>",
|
|
25
|
+
"keywords": ["domain-name", "domain-status", "domain-availability", "rdap", "whois"],
|
|
25
26
|
"exports": {
|
|
26
27
|
".": "./dist/index.js"
|
|
27
28
|
},
|
|
28
|
-
"license": "
|
|
29
|
+
"license": "MIT",
|
|
29
30
|
"engines": {
|
|
30
31
|
"node": "^22.12.0",
|
|
31
32
|
"npm": "^10.9.0"
|