util-promisify
Node 8's util.promisify, as a node module
Last updated 8 years ago by juliangruber .
MIT · Repository · Bugs · Original npm
$ cnpm 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

  • 2.1.0                                ...           latest (8 years ago)

1 Versions

  • 2.1.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org