ghor
dependency injection tool
Dependency injection for JavaScript using ES6 Proxies.
Example usage
const ghor = require('ghor');
const resolve = ghor({
'a': ({b, c}) => 'A' + b + c
'b': () => 'B',
'c': ({b}) => 'C' + b
});
const a = resolve('a'); // === 'ABCB'