New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

domain-check

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domain-check

Check if a domain is free or not using promises

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

domain-check Build Status

domain-check is a node module using promises allowing to check if a domain is free to register or not

Installation

npm install domain-check --save
yarn add domain-check
bower install domain-check --save

Usage

To check if a domain is free you can create a new Domain object...

const domainCheck = require('domain-check');
const Domain = domainCheck.Domain;

...

const domain = new Domain('google.de');
console.log(await domain.isFree());

or use the static method isFree of the Domain class

    const Domain = require('domain-check').Domain;

    ...

    const isFree = await Domain.isFree('google.de');
    console.log(isFree);

Known issues

It might be that the module shows an registered domain as available to register. This is because the underlying library node-whois can not handle newer tlds. A fix is in progress.

Keywords

domain

FAQs

Package last updated on 07 Sep 2019

Related posts