node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

qpatch

qpatch

"Patch" JS Classes using node's std callbacks to use Q promises

Example

var qClass = require('qpatch');
 
var newClass = qClass(someOldClass, ['methods_to_exclude', '...']);
 
// newClass' methods now return promises instead of accepting callbacks