Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
check-domain
Advanced tools
Readme
Retrieve informations about one domain:
In order to get all info, you need to provide your majestic API key, your whoisxmlapi credential & your Semrush API key. Without those setting, it returns only dns resolution, ip, ping & indexed pages.
We plan to support other APIs notably for the whois data. Feel free to suggest your favorite ones.
$ npm install check-domain --save
var checkDomain = require("check-domain");
var options = {
domain : "domainToCheck.com",
majesticKey : "[add here your majestic key]",
whois : {user : "[your whoisxmlapi name]", password : "[your whoisxmlapi password]"},
semrushKey : "[add here your semrush key]",
};
checkDomain(options,
function(error, result) {
console.log(result); // see the complete result structure
console.log(result.isDNSFound);
console.log(result.ip);
console.log(result.isAlive);
console.log(result.isAvailable);
console.log(result.majestic); // see the json structure provided by http://developer-support.majestic.com/api/commands/get-index-item-info.shtml
console.log(result.whois); // see the json structure provided by http://www.whoisxmlapi.com
console.log(result.semrush); // The Semrush datas
console.log(result.primaryIndex);
console.log(result.googleIndex);
console.log(result.secondaryIndex);
// We add extra fields in the whois structure
console.log(result.whois.isValidDomain);
console.log(result.whois.missingData); // The whois database doesn't contain info for this domain
console.log(result.whois.isPendingDelete);
console.log(result.whois.isRedemptionPeriod);
console.log(result.whois.createdDate);
console.log(result.whois.expiresDate);
console.log(result.whois.expiredWaitingTime);
});
The options object (see below) can contain the following parameters. Depending your use case, there are some options that can help to avoid an unnecessary cost for some APIs.
FAQs
A simple component to check the status of a domain (whois, availability, expired, TrustFlow, number of indexed pages, ...)
The npm package check-domain receives a total of 24 weekly downloads. As such, check-domain popularity was classified as not popular.
We found that check-domain demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.