You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
654 B

4 years ago
  1. # dns-equal
  2. Compare DNS record strings for equality. Enforces [RFC
  3. 1035](https://tools.ietf.org/html/rfc1035) domain comparison.
  4. [![Build status](https://travis-ci.org/watson/dns-equal.svg?branch=master)](https://travis-ci.org/watson/dns-equal)
  5. [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
  6. ## Installation
  7. ```
  8. npm install dns-equal --save
  9. ```
  10. ## Usage
  11. ```js
  12. var dnsEqual = require('dns-equal')
  13. var domain1 = 'Example.COM'
  14. var domain2 = 'example.com'
  15. if (dnsEqual(domain1, domain2)) {
  16. console.log('The two domains are the same')
  17. }
  18. ```
  19. ## License
  20. MIT