vow-node
0.3.0 • Public • Published vow-node

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);
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.3.0 | 116 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.3.0 | 116 | |
0.2.1 | 7 | |
0.2.0 | 3 | |
0.1.0 | 3 | |
Package Sidebar
Install
Weekly Downloads