travel/admin/node_modules/dns-equal
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
.npmignore init... 2024-06-24 11:28:18 +08:00
.travis.yml init... 2024-06-24 11:28:18 +08:00
LICENSE init... 2024-06-24 11:28:18 +08:00
README.md init... 2024-06-24 11:28:18 +08:00
index.js init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00
test.js init... 2024-06-24 11:28:18 +08:00

README.md

dns-equal

Compare DNS record strings for equality. Enforces RFC 1035 domain comparison.

Build status js-standard-style

Installation

npm install dns-equal --save

Usage

var dnsEqual = require('dns-equal')

var domain1 = 'Example.COM'
var domain2 = 'example.com'

if (dnsEqual(domain1, domain2)) {
  console.log('The two domains are the same')
}

License

MIT