dfilatov/vow

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.

See de17ab1. Is it suitable for you?

qfox commented

@dfilatov 👍 seems like yes.