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) • 384 B
JavaScript
;
// Fire me up!
var counter = 0;
module.exports = {
implements: ['instantiation/type/singleton/interface1', 'instantiation/type/singleton/interface2'],
type: require('../../../../../lib/index.js').constants.MODULE_TYPE_SINGLETON
};
module.exports.factory = function () {
counter += 1;
return [require('path').relative(process.cwd(), __filename), counter];
};