Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/berhalak/overnew

Dependency injection library
https://github.com/berhalak/overnew

container dependency-injection ioc operators override typescript

Last synced: about 1 month ago
JSON representation

Dependency injection library

Awesome Lists containing this project

README

        

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/berhalak/overnew)

# overnew

npm install overnew

Simple dependency injection library

Sample:

``` ts

class Service {

}

class ConcreteService {

}

inject.for(Service).create(ConcreteService);

assert(inject(Service) instanceof ConcreteService);

```