New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

co-dns

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-dns

dns wrappers for 'co'

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

co-dns

Node core dns wrapped functions that return thunks for co.

Installation

$ npm install co-dns --save

Example

Use all the regular async dns functions without callback hell:

var wrap = require('co-dns')
var dns = wrap(require('dns'))

var hostnames = yield dns.reverse('8.8.8.8') // returns an array

// returns an array, where ip[0] is the ip address and ip[1] is the family (ipv4 or ipv6)
var ip = yield dns.lookup('bing.com')

License

MIT

Keywords

async

FAQs

Package last updated on 19 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts