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

@octetstream/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

@octetstream/promisify

Tiny, dependency free promisify library.

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
58K
decreased by-56.54%
Maintainers
1
Weekly downloads
 
Created
Source

@octetstream/promisify

Tiny, dependency free promisify library.

devDependencies Status Build Status Code Coverage

API

promisify(target[, ctx]) -> {Function}

Promisify Node.js callback-style function with native Promise

  • {Function} target - function, that will be wrap with a Promise
  • {any} [ctx = null] - "this" context for a target function

promisify.all(targets[, ctx]) -> {object}

Promisify all functions from given object

  • {object} targets – object of target functinos
  • {any} [ctx = null] - "this" context for all wrapped functions

promisify.some(targets, list[, ctx]) -> {object}

Promisify some functions from given object, that was specified in list

  • {object} targets – object of target functinos
  • {string[]} list – an array of target functions names
  • {any} [ctx = null] - "this" context for all wrapped functions

promisify.except(targets, list[, ctx]) -> {object}

Promisify all functions from given object, except the ones from list

  • {object} targets – object of target functinos
  • {string[]} list – an array of target functions names
  • {any} [ctx = null] - "this" context for all wrapped functions

Keywords

FAQs

Package last updated on 16 Mar 2019

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