Socket
Book a DemoInstallSign in
Socket

util-promisify

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-promisify

Node 8's util.promisify, as a node module

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 28 Sep 2021

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