lhl 6ff0e96ad3 8-4-1 | 1 rok temu | |
---|---|---|
.. | ||
.npmignore | 1 rok temu | |
.travis.yml | 1 rok temu | |
LICENSE | 1 rok temu | |
README.md | 1 rok temu | |
index.js | 1 rok temu | |
package.json | 1 rok temu | |
test.js | 1 rok temu |
Compare DNS record strings for equality. Enforces RFC 1035 domain comparison.
npm install dns-equal --save
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')
}
MIT