1.0.2 • Published 2 years ago

domain-namer v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Domain-Namer

Generate and validate fully qualified domain names and more!

Installation

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

Usage

Javascript

const DomainPatterns = require("domain-namer").DomainPatterns;
console.log(DomainPatterns.fqdn.test("google.com"));
// Should print out 'true'

Typescript

import { DomainPatterns } from "domain-namer";
console.log(DomainPatterns.topLevelDomain.test("com"));
// Should print out 'true'

Test

npm run test