promisifier

A simple callback that turns every Async function into promise.

Promisifier

Turns any Async JS function into a Promise.
$ npm install promisifier
var promisifier = require("promisifier");

Promisify an Async function with arguments.

var promisifier = require("promisifier"),
    request = require("request");
 
var promise = promisifier.asyncMethodToPromise(request.get, "http://google.com", options);
 
promise.then(console.log);

Pass args as array.

var promisifier = require("promisifier"),
    request = require("request");
 
var args = [
    "http://google.com",
    {}
];
 
var promise = promisifier.asyncMethodToPromise(request.get, args);
 
promise.then(console.log);