(target, functions)
| 1 | var Promise = require("bluebird"); |
| 2 | |
| 3 | function promisifyFunctions (target, functions) { |
| 4 | functions.forEach(function (fnName) { |
| 5 | target[fnName + 'Async'] = Promise.promisify(target[fnName]); |
| 6 | }); |
| 7 | }; |
| 8 | |
| 9 | module.exports = { |
| 10 | promisifyFunctions: promisifyFunctions, |
nothing calls this directly
no outgoing calls
no test coverage detected