diff options
author | shisama <shisama07@gmail.com> | 2020-04-20 22:46:26 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2020-05-24 04:26:21 +0300 |
commit | 039cd00a9acfacd3a5a304be09bf17debd54aaaf (patch) | |
tree | be7cb71c5df4c0add927adbb2387d65adbad302f /doc/api/dns.md | |
parent | 7a094dc5056be640b7c9982074a8cda53de81afa (diff) |
dns: add dns/promises alias
PR-URL: https://github.com/nodejs/node/pull/32953
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r-- | doc/api/dns.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 030bb7674b0..f6b8dbd3c0e 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -611,7 +611,7 @@ earlier ones time out or result in some other error. The `dns.promises` API provides an alternative set of asynchronous DNS methods that return `Promise` objects rather than using callbacks. The API is accessible -via `require('dns').promises`. +via `require('dns').promises` or `require('dns/promises')`. ### Class: `dnsPromises.Resolver` <!-- YAML |