Hi.
In node.js there is dns.lookup method - https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
Is there any equivalent in Meteor? If not, how can I use that method in my app?
Hi.
In node.js there is dns.lookup method - https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
Is there any equivalent in Meteor? If not, how can I use that method in my app?
const dns = Npm.require('dns');
// dns.lookup
// dns.resolve
Or just
import dns from 'dns'
In the end, Meteor === Node
Anyway the question was from 2016
Well, thanks! Embarrassingly enough, only now I know that plain imports actually work. I think they didn’t in previous versions. Or did they?..
I saw it’s an old entry, but if it comes up in google results, I figured it should have an answer
regular npm import has worked since Meteor 1.3 ( 2016-03-27)