caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
.npmignore | 8 months ago | |
.travis.yml | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
index.js | 8 months ago | |
package.json | 8 months ago | |
test.js | 8 months ago |
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