ericadamski / whoisit

whoisit is a small TypeScript WHOIS client for Node.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whoisit

whoisit is a small (~30kb gzipped) TypeScript WHOIS client for Node.js.

Installation

$ npm i whoisit

Usage

  • Get the raw WHOIS details

    import { lookup } from "whoisit";
    
    console.log(await lookup("google.com"));
  • Get location information for an IP address

    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.

About

whoisit is a small TypeScript WHOIS client for Node.js.


Languages

Language:TypeScript 62.9%Language:JavaScript 37.1%