fire-up
Version:
Fire Up! is a dependency injection container designed specifically for node.js with a powerful but sleek API.
21 lines (14 loc) • 387 B
JavaScript
;
// Fire me up!
var BPromise = require('bluebird');
module.exports = {
implements: 'instantiation/returnValue/objectAsync',
type: 'multiple instances'
};
module.exports.factory = function () {
return new BPromise(function (resolve) {
setTimeout(function () {
resolve({ path: require('path').relative(process.cwd(), __filename) });
}, 10);
});
};