Skip to content

Thanks #1

@ericrini

Description

@ericrini

I just want to say thanks, this is very clean and simple. Great work, it's sad to see it's not getting more attention. You might consider adding an example of how to bootstrap the application in the docs.

Specifically I ended up doing something like this for a new project.

var injct = require('injct');

// Register Third Party Modules
injct.static({ lodash: require('lodash') });

// Register Application Modules
injct.register({ configuration: require('./Configuration') });
injct.register({ analyticsEngine: require('./AnalyticsEngine') });

// Launch the Application Entry Point
injct.getInstance('analyticsEngine');

The injct.getInstance() function isn't in the documentation, which might be a little confusing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions