Probably it would be cool to have a wrapper function for natives
Closed this issue · 4 comments
qfox commented
Just an idea.
Simple API:
var vowNode = require('vow/node/wrap');
var promise = vowNode.call(fn, arg1, arg2, ...);
For example:
vowNode(require('zlib').deflate, buf)
.then(...);
qfox commented
crypto.randomBytes(size, callback)
, and a lot of others.
dfilatov commented
closed in favour https://github.com/dfilatov/vow-node