https://github.com/ericadamski/whoisit
whoisit is a small TypeScript WHOIS client for Node.js.
https://github.com/ericadamski/whoisit
nodejs typescript whois
Last synced: 3 months ago
JSON representation
whoisit is a small TypeScript WHOIS client for Node.js.
- Host: GitHub
- URL: https://github.com/ericadamski/whoisit
- Owner: ericadamski
- Created: 2024-06-07T00:48:08.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-06-09T12:34:37.000Z (12 months ago)
- Last Synced: 2025-02-08T09:18:23.031Z (4 months ago)
- Topics: nodejs, typescript, whois
- Language: TypeScript
- Homepage:
- Size: 23 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whoisit
`whoisit` is a small (~30kb gzipped) TypeScript WHOIS client for Node.js.
## Installation
```
$ npm i whoisit
```#### Usage
- Get the raw WHOIS details
```typescript
import { lookup } from "whoisit";console.log(await lookup("google.com"));
```- Get location information for an IP address
```typescript
import { getIpLocationInfo } from "whoisit";console.log(await getIpLocationInfo("19.34.45.123")); // { address: 'P.O. Box 2053, RM E-1121', city: 'Dearborn', region: 'MI', postalCode: '48121-2053', country: 'US' }
```## Contributing
Contributions are welcome.
#### Original CoffeeScript Source
Many thanks to the author of: https://github.com/FurqanSoftware/node-whois for the original source of this project.