util-promisify
Node 8's util.promisify, as a node module
Last updated 3 years ago by juliangruber .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install util-promisify 
SYNC missed versions from official npm registry.

util-promisify

Node 8's require('util').promisify as a node module, so you can use it right now!

Supports all major node versions.

build status downloads Greenkeeper badge

Usage

const promisify = require('util-promisify');
const fs = require('fs');

const stat = promisify(fs.stat);

stat('/tmp/').then(s => {
  // ...
});

Installation

$ npm install util-promisify

API

See util.promisify's API docs.

promisify(original)

(Symbol) promisify.custom

If available, the Symbol is reexported from node core's util module.

License

MIT

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

12 Versions

  • 3.0.0                                ...           3 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.1.4                                ...           7 years ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE