util-promisify

WebJar for util-promisify

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

util-promisify
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

util-promisify
WebJar for util-promisify
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/juliangruber/util-promisify

Download util-promisify

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/util-promisify/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>util-promisify</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/util-promisify/
implementation 'org.webjars.npm:util-promisify:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/util-promisify/
implementation ("org.webjars.npm:util-promisify:2.1.0")
'org.webjars.npm:util-promisify:jar:2.1.0'
<dependency org="org.webjars.npm" name="util-promisify" rev="2.1.0">
  <artifact name="util-promisify" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='util-promisify', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "util-promisify" % "2.1.0"
[org.webjars.npm/util-promisify "2.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : object.getownpropertydescriptors jar [2.0.3,3)

Project Modules

There are no modules declared in this project.

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

Versions

Version
2.1.0