Package Exports
- dns-equal
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dns-equal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dns-equal
Compare DNS record strings for equality. Enforces RFC 1035 domain comparison.
Installation
npm install dns-equal --saveUsage
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