ghor

dependency injection tool

licenseMITgithublrsjng/ghornpmghor
0.5.0

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'

ES6 Proxy

Works best with JavaScript enabled!Works best in modern browsers!