is-fqdn

2.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i is-fqdn

    Weekly Downloads

    1,338

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.29 kB

    Total Files

    4

    Last publish

    Collaborators

    • parroit