Skip to content

A Javascript library to generate and validate fully qualified domain names and more!

License

Notifications You must be signed in to change notification settings

Sirusblk/domain-namer

Repository files navigation

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

About

A Javascript library to generate and validate fully qualified domain names and more!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published