🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

sidi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sidi

A simple dependency injection container.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

SiDI (pronounced See Dee)

A simple dependency injection container.

Currently, SiDI is just a container, but near future plans will turn it into a dependency assembler as well.

Usage


var Container = require('sidi').Container;
var DB = require('db');
var container = new Container();
var config = require('config');

// Basic Set/Get resources

container.set('db', new DB(config));

var db = container.get('db');

// Factory resources

container.setFactory('db', DB);

var db = container.create('db', config);


Keywords

dependency injection

FAQs

Package last updated on 28 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts