Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

root-hints

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

root-hints - npm Package Compare versions

Comparing version
2.0.3
to
3.0.0
+5
-4
package.json
{
"name": "root-hints",
"version": "2.0.3",
"version": "3.0.0",
"description": "Provides IP addresses of the DNS root servers, also known as 'root hints'.",

@@ -12,3 +12,3 @@ "author": "silverwind <me@silverwind.io> (https://github.com/silverwind)",

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -32,8 +32,9 @@ "keywords": [

"devDependencies": {
"eslint": "^4.16.0",
"eslint": "^4.19.1",
"eslint-config-silverwind": "^1.0.42",
"ip-regex": "^2.1.0",
"request": "^2.83.0",
"request-promise-native": "^1.0.5",
"updates": "^2.1.0"
"updates": "^3.0.0"
}
}

@@ -14,11 +14,11 @@ # root-hints

```js
var hints = require('root-hints');
var rootHints = require('root-hints');
console.log(hints('A'));
console.log(rootHints('A'));
//=> ['198.41.0.4', '192.228.79.201', ...]
console.log(hints('AAAA'));
console.log(rootHints('AAAA'));
//=> ['2001:503:BA3E::2:30', '2001:500:84::B', ...]
console.log(hints());
console.log(rootHints());
//=> [{ A: '198.41.0.4', AAAA: '2001:503:ba3e::2:30', name: 'a.root-servers.net' }, ...]

@@ -25,0 +25,0 @@ ```