Numerous Pulsating Martians
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dependency-managerpublic

    Simple dependency injection manager

    Creates instances of objects initialised with a graph of dependencies.

    var di = new DependencyManager();
    di.register(Apple); // has no dependencies
    di.register(Peeler, {
        'peelable': 'Apple' // property peelable initialised with Apple
    });
    di.register(Juicer, {
        'peeler': 'Peeler', // property peeler initialised with Peeler
        'peelable': 'Apple' // property peelable initialised with Apple
    });
    
    var jucer = di.create('Juicer');

    Keywords

    none

    install

    npm i dependency-manager

    Downloadsweekly downloads

    2

    version

    0.0.2

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar