Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
/ es-injection Public archive

ECMAScript decorators for dependency injection, inspired by JSR-330 and Spring.

License

Notifications You must be signed in to change notification settings

rraziel/es-injection

Repository files navigation

es-injection

A modern, lightweight implementation of dependency injection inspired by JSR-330 and Spring.

Version Downloads AppVeyor CircleCI Travis CI

AppVeyor tests Codecov Code Climate Code Climate

Overview

The library makes it possible to:

  • define components and manage their lifecycle
  • inject said components as dependencies

This loose coupling tends to make code more self-contained and easier to test, as injected components can be mocked to exhibit the behavior required for each test.

User Guide

Installation

The library can be installed using npm:

npm install @es-injection/core --save

Or using yarn:

yarn add @es-injection/core

Development

The modules can be built using the following command:

yarn run build

Tests are written using Jest and can be kept running as a background task with:

yarn run test:watch

About

ECMAScript decorators for dependency injection, inspired by JSR-330 and Spring.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published