New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

n2p

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

n2p

node-style callback to promise

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

n2p - node-style callback to promise

Usage

var n2p = require('n2p');

async function foo() {
  return await n2p(function(cb) {
    fs.readFile('foo.txt', cb)
  })
}

Or in livescript (with the async syntax)

require! n2p

foo = ->>
  return await n2p -> fs.readFile('foo.txt', it)

Licence

MIT

Credits

By Geza Kovacs

Keywords

nodeback

FAQs

Package last updated on 02 Jun 2017

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