domainname
v1.0.0
Published
Get domain names by counrty
Downloads
6
Readme
domainName
Get countries' domain names and reverse.
Installation
npm i --save domainName
Usage
Get name of a country by it's domain name :
var domains = require('domainName');
var test = domains.isDomainOf('.ca');
console.log(test); // Canada
Get domain name by name of a country:
var domains = require('domainName');
var test = domains.domainOf('Spain');
console.log(test); // .es
Api
domainOf (parameter : string
)
Description : returns a domain name.
Returns : string
isDomainOf (parameter : string
)
Description : returns name of a country.
Returns string