
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
b-ioc is a tiny and magic free IoC container for Node. It helps you manage dependencies and facilitates an easy testing environment for your modules.
npm install b-ioc --save
var Ioc = require('b-ioc');
var ClassA = require('class-a');
var ClassB = require('class-b');
// binding the classes
Ioc.bind('classA', function() {
return new ClassA();
});
Ioc.bind('classB', function() {
// classB needs classA as a dependency
var classA = Ioc.use('classA');
return new ClassB(classA);
});
// using the bindings
var classB = Ioc.use('classB');
Be sure to consult the documentation for more examples and an in depth look at the API.
FAQs
A magic free, dirt simple IoC container for Javascript.
We found that b-ioc-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.