fire-up
Version:
Fire Up! is a dependency injection container designed specifically for node.js with a powerful but sleek API.
16 lines (11 loc) • 403 B
JavaScript
;
// Fire me up!
var counter = 0;
module.exports = {
implements: ['instantiation/type/multiInstances/interface1', 'instantiation/type/multiInstances/interface2'],
type: require('../../../../../lib/index.js').constants.MODULE_TYPE_MULTIPLE_INSTANCES
};
module.exports.factory = function () {
counter += 1;
return [require('path').relative(process.cwd(), __filename), counter];
};