PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
pac-resolver
/** * Module dependencies. */ var dns = require('dns'); /** * Module exports. */ module.exports = isResolvable; isResolvable.async = true; /** * Tries to resolve the hostname. Returns true if succeeds. * * @param {String} host is the hostname from the URL. * @return {Boolean} */ function isResolvable (host, fn) { var family = 4; dns.lookup(host, family, function (err, ip) { fn(null, !err); }); }
[-] isInNet.js
[edit]
[-] dnsDomainIs.js
[edit]
[+]
..
[-] isResolvable.js
[edit]
[-] .npmignore
[edit]
[-] package.json
[edit]
[-] dnsDomainLevels.js
[edit]
[-] dnsResolve.js
[edit]
[-] weekdayRange.js
[edit]
[-] myIpAddress.js
[edit]
[-] dateRange.js
[edit]
[-] index.js
[edit]
[-] timeRange.js
[edit]
[-] localHostOrDomainIs.js
[edit]
[-] .travis.yml
[edit]
[-] isPlainHostName.js
[edit]
[-] README.md
[edit]
[-] shExpMatch.js
[edit]
[+]
test
[-] CHANGELOG.md
[edit]