2.0.1 • Published 4 years ago

is-fqdn v2.0.1

Weekly downloads
61
License
MIT
Repository
github
Last release
4 years ago

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