https://github.com/parro-it/is-fqdn
Check if a string represent a fully qualified domain name
https://github.com/parro-it/is-fqdn
Last synced: about 1 year ago
JSON representation
Check if a string represent a fully qualified domain name
- Host: GitHub
- URL: https://github.com/parro-it/is-fqdn
- Owner: parro-it
- License: mit
- Created: 2016-05-06T19:09:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T00:39:49.000Z (over 3 years ago)
- Last Synced: 2024-10-03T06:26:52.801Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 322 KB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-micro-npm-packages - is-fqdn - Check if a string represent a fully qualified domain name. (Modules / Other)
- awesome-micro-npm-packages - is-fqdn - Check if a string represent a fully qualified domain name. (Modules / Other)
- awesome-micro-npm-packages-zh - is-fqdn - 检查字符串是否表示全限定的域名. (模块 / 其他)
- fucking-awesome-micro-npm-packages - is-fqdn - Check if a string represent a fully qualified domain name. (Modules / Other)
README
# is-fqdn
> Check if a string represent a fully qualified domain name.
[](http://travis-ci.org/parro-it/is-fqdn)
[](https://npmjs.org/package/is-fqdn)
[](https://npmjs.org/package/is-fqdn)
# Installation
```bash
npm install --save is-fqdn
```
# Usage
```js
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