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