Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sane/dns

bls9MIT1.0.0TypeScript support: included

Promisified 'dns' API, for typescript.

promisify, dns

readme

@sane/dns

Promisified 'dns' API, for typescript.

Just import it and use it like the regular 'dns' module.

Install

npm install @sane/dns --save

Api

See src/index.ts for a list of promisifed methods.

Example

import * as dns from '@sane/dns';

dns.reverseAsync('8.8.8.8')
    .then(() => {
        // ...
    });

Release

  1. Bump up the version number in package.json
  2. Add a section for the new release in CHANGELOG.md
  3. Run npm run-script compile to ensure it builds
  4. Commit
  5. Run npm publish
  6. Create a git tag for the new release and push it

changelog

Change Log

[1.0.0] - 2016-01-18

Initial release.