MCPcopy Index your code
hub / github.com/nodejs/node / lookupService

Function lookupService

lib/internal/dns/promises.js:281–291  ·  view source on GitHub ↗
(address, port)

Source from the content-addressed store, hash-verified

279}
280
281function lookupService(address, port) {
282 if (arguments.length !== 2)
283 throw new ERR_MISSING_ARGS('address', 'port');
284
285 if (isIP(address) === 0)
286 throw new ERR_INVALID_ARG_VALUE('address', address);
287
288 validatePort(port);
289
290 return createLookupServicePromise(address, +port);
291}
292
293
294function onresolve(err, result, ttls) {

Callers 1

Calls 2

isIPFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…