@brokenbyte-software/whois
v0.0.2
Published
A WHOIS client for NodeJS with various output formats
Downloads
3
Readme
@brokenbyte-software/whois
A WHOIS client for NodeJS with various output formats
Features
- zero dependencies!
- simple as possible
Installion
- npm
npm i @brokenbyte-software/whois
- yarn
yarn add @brokenbyte-software/whois
- pnpm
pnpm install @brokenbyte-software/whois
Usage
- TypeScript
import {whois, WellKnownKeys, ResultFormat} from '@brokenbyte-software/whois';
async function run () {
const result = await whois('google.com', {format: ResultFormat.Object});
console.log(result[WellKnownKeys.Whois]); // or console.log(result);
}
run();
- JavaScript
const {whois, WellKnownKeys, ResultFormat} = require('@brokenbyte-software/whois');
async function run () {
const result = await whois('google.com', {format: ResultFormat.Object});
console.log(result[WellKnownKeys.Whois]); // or console.log(result);
}
run();