Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
654 bytes
|
Line | |
---|
1 | # dns-equal
|
---|
2 |
|
---|
3 | Compare DNS record strings for equality. Enforces [RFC
|
---|
4 | 1035](https://tools.ietf.org/html/rfc1035) domain comparison.
|
---|
5 |
|
---|
6 | [](https://travis-ci.org/watson/dns-equal)
|
---|
7 | [](https://github.com/feross/standard)
|
---|
8 |
|
---|
9 | ## Installation
|
---|
10 |
|
---|
11 | ```
|
---|
12 | npm install dns-equal --save
|
---|
13 | ```
|
---|
14 |
|
---|
15 | ## Usage
|
---|
16 |
|
---|
17 | ```js
|
---|
18 | var dnsEqual = require('dns-equal')
|
---|
19 |
|
---|
20 | var domain1 = 'Example.COM'
|
---|
21 | var domain2 = 'example.com'
|
---|
22 |
|
---|
23 | if (dnsEqual(domain1, domain2)) {
|
---|
24 | console.log('The two domains are the same')
|
---|
25 | }
|
---|
26 | ```
|
---|
27 |
|
---|
28 | ## License
|
---|
29 |
|
---|
30 | MIT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.