Neoclassical Philosophic Musings

    util-promisify

    3.0.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i util-promisify

    DownloadsWeekly Downloads

    1,966,373

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    14.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • juliangruber