rdi
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

RDI - Reflective Dependecy Injector

A port of Angular's ReflectiveInjector. Originally made for DiscordBuddy

About

RDI is a IoC container for TypeScript apps. It's heavily inspired by Angular's own DI, and because of that I have choosen to keep the exact same API as Angular's DI.

Motivation

I have aways been a huge fan of Angular's way of strucuring an application. RDI was originally written for DiscordBuddy, a framework to build amazing Discord bots with. However I noticed I started using the di part of DiscordBuddy in other projects too. So I thought might as well make a separated NPM module which can be better documented.

Installation

You can get the latest version of RDI and it's definitions with npm like so:

$ npm install rdi reflect-metadata --save

RDI required Reflect Metadata in order to work correctly and you should import reflect-metadata only once in your entire application.

Usage

This README is still a concept sorry :/ Checkout the test files to see how to use the Injector for now.

Package Sidebar

Install

npm i rdi

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

91.9 kB

Total Files

111

Last publish

Collaborators

  • itsdizzy