🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

fying-promises

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fying-promises

get promises flow from callback pattern

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

fying-promises

module to promisify a function

usage

async () => {
    const promised = pFying((param, cb)=>{
        assert(param === 'param');
        cb('error')
    })
    const error = await promised('param').catch(error=>error)
    assert(error==='error');
}

API

pfying(Function) => Function

Keywords

promise

FAQs

Package last updated on 01 Sep 2018

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