🌜
🌞

Best JavaScript Dependency Injection Libraries

injection-js

injection-js

v2.4.0

Dependency Injection library for JavaScript and TypeScript

Last Commit
Apr 21, 2022
GitHub Stargazers
1,093
License
MIT
Contributors
10
proxyquire

proxyquire

v2.1.3

Proxies nodejs require in order to allow overriding dependencies during testing.

Last Commit
Jun 15, 2021
GitHub Stargazers
2,694
License
MIT
Contributors
31
awilix

awilix

v7.0.3

Extremely powerful dependency injection container.

Last Commit
May 2, 2022
GitHub Stargazers
2,611
License
MIT
Contributors
26
inversify

inversify

v6.0.1

A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.

Last Commit
Aug 13, 2022
GitHub Stargazers
9,295
License
MIT
Contributors
90
ng-annotate

ng-annotate

v1.2.2

add, remove and rebuild angularjs dependency injection annotations

Last Commit
Jun 1, 2017
GitHub Stargazers
2,059
License
MIT
Contributors
21
typedi

typedi

v0.10.0

Dependency injection for TypeScript.

Last Commit
Oct 6, 2022
GitHub Stargazers
3,290
License
MIT
Contributors
20
bottlejs

bottlejs

v2.0.1

A powerful dependency injection micro container

Last Commit
Jun 29, 2022
GitHub Stargazers
1,239
License
MIT
Contributors
20
typed-inject

typed-inject

v3.0.1

Type safe dependency injection framework for TypeScript

Last Commit
May 3, 2022
GitHub Stargazers
284
License
Apache-2.0
Contributors
3
node-dependency-injection

node-dependency-injection

v3.0.3

The NodeDependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.

Last Commit
Aug 1, 2022
GitHub Stargazers
193
License
MIT
Contributors
13
mock-require

mock-require

v3.0.3

Simple, intuitive mocking of Node.js modules.

Last Commit
Mar 15, 2021
GitHub Stargazers
460
License
MIT
Contributors
12
@wikia/dependency-injection

@wikia/dependency-injection

v2.2.3

A Lightweight dependency injection container for typescript and javascript.

Last Commit
Mar 30, 2020
GitHub Stargazers
2
License
MIT
Contributors
8
@foal/core

@foal/core

v2.9.0

Elegant and complete Node.Js web framework based on TypeScript

Last Commit
Sep 30, 2022
GitHub Stargazers
1,633
License
MIT
Contributors
49
inversify-inject-decorators

inversify-inject-decorators

v3.1.0

Lazy evaluated property injection decorators for InversifyJS

Last Commit
Aug 24, 2019
GitHub Stargazers
137
License
MIT
Contributors
8
rewire

rewire

v6.0.0

Easy dependency injection for node.js unit testing

Last Commit
Dec 19, 2021
GitHub Stargazers
3,021
License
MIT
Contributors
20
require-inject

require-inject

v1.4.4

A simple mock injector compatible needing no instrumentation in the libraries being tested

Last Commit
Dec 25, 2018
GitHub Stargazers
32
License
ISC
Contributors
7
dependency-injection

dependency-injection

v2.3.3

[ABANDONED] Dependency injection with configuration and autowire for node js and browser

Last Commit
-
GitHub Stargazers
21
License
MIT
Contributors
2
react-magnetic-di

react-magnetic-di

v2.2.8

Context driven dependency injection

Last Commit
Oct 6, 2022
GitHub Stargazers
108
License
MIT
Contributors
2
node-dependency-injection-express-middleware

node-dependency-injection-express-middleware

v1.2.2

Node Dependency Injection Express Middleware

Last Commit
Apr 12, 2020
GitHub Stargazers
8
License
MIT
Contributors
2
@owja/ioc

@owja/ioc

v1.0.1

dependency injection for javascript

Last Commit
Aug 16, 2022
GitHub Stargazers
220
License
MIT
Contributors
3
express-dependency-injection

express-dependency-injection

v1.5.0

a dependency injector for express using decorators

Last Commit
-
GitHub Stargazers
-
License
ISC
Contributors
1
didi

didi

v8.0.0

Dependency Injection for JavaScript

Last Commit
Jun 23, 2022
GitHub Stargazers
56
License
MIT
Contributors
5
constitute

constitute

v1.6.2

Minimalistic Dependency Injection (DI) for ES6

Last Commit
Apr 27, 2016
GitHub Stargazers
133
License
ISC
Contributors
2
solfegejs-dependency-injection

solfegejs-dependency-injection

v2.2.6

Dependency injection for SolfegeJS

Last Commit
Jul 16, 2020
GitHub Stargazers
-
License
MIT
Contributors
1
fastify-decorators

fastify-decorators

v3.13.1

Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.

Last Commit
Oct 6, 2022
GitHub Stargazers
207
License
MIT
Contributors
5