Socket
Socket
Sign inDemoInstall

vow-node

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vow-node

Extension for Vow to work with nodejs-style callbacks


Version published
Weekly downloads
59
decreased by-52.8%
Maintainers
1
Install size
60.2 kB
Created
Weekly downloads
 

Readme

Source

vow-node NPM version Build Status

Vow-node is a small extension for vow to work with nodejs-style callbacks

Getting Started

###In Node.js### You can install using Node Package Manager (npm):

npm install vow-node

API

####promisify(fn)#### Transforms given function fn to a function that returns promise.

var fs = require('fs'),
    readFile = vowNode.promisify(fs.readFile);

readFile('package.json').then(function(content) {
    console.log(content);
});

####invoke(fn, ...args)#### Invokes given function fn with arguments args.

var fs = require('fs');

vowNode.invoke(fs.readFile, 'package.json').then(function(content) {
    console.log(content);
});

Keywords

FAQs

Last updated on 23 Apr 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc