Generate and validate fully qualified domain names and more!
npm install domain-namer --save
yarn add domain-namer
bower install domain-namer --save
const DomainPatterns = require("domain-namer").DomainPatterns;
console.log(DomainPatterns.fqdn.test("google.com"));
// Should print out 'true'
import { DomainPatterns } from "domain-namer";
console.log(DomainPatterns.topLevelDomain.test("com"));
// Should print out 'true'
npm run test