Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

promisify-function

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promisify-function

Turn a callback-style function into a function that returns a promise

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-1.16%
Maintainers
1
Weekly downloads
 
Created
Source

promisify-function

npm Build Status Coverage Status Dependency Status devDependency Status js-standard-style Commitizen friendly semantic-release

Turn a callback style function into a function that returns a promise.

Installation

The recommended way to install promisify-function is as a dependency of a project:

npm install --save promisify-function

Usage

Pass a callback style function and get a function the returns a Promise as result:

const fs = require('fs')
const promisify = require('promisify-function')
const mkdir = promisify(fs.mkdir)

Contributing

Any contribution is more than welcome. In particular, if:

  • there's something that doesn't work as expected or you have an idea for a nice to have feature, then please submit an issue here
  • you know how to fix a problem or improve the code, then please submit a pull request here

Keywords

FAQs

Package last updated on 02 Feb 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc