Skip to content

Check if a string represent a fully qualified domain name

License

Notifications You must be signed in to change notification settings

parro-it/is-fqdn

Repository files navigation

is-fqdn

Check if a string represent a fully qualified domain name.

Travis Build Status NPM module NPM downloads

Installation

npm install --save is-fqdn

Usage

const isFQDN = require("is-fqdn");

console.log(isFQDN("www.parro.it"));
// true

console.log(isFQDN("256.0.0.0"));
// false

console.log(isFQDN("s!ome.com"));
// false

License

The MIT License (MIT)

Copyright (c) 2016 Andrea Parodi

About

Check if a string represent a fully qualified domain name

Resources

License

Stars

Watchers

Forks

Packages

No packages published