Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulhobbel/rdi
A port of Angular's ReflectiveInjector. Originally made for DiscordBuddy
https://github.com/paulhobbel/rdi
Last synced: 17 days ago
JSON representation
A port of Angular's ReflectiveInjector. Originally made for DiscordBuddy
- Host: GitHub
- URL: https://github.com/paulhobbel/rdi
- Owner: paulhobbel
- License: mit
- Created: 2018-02-16T20:25:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T15:47:47.000Z (almost 7 years ago)
- Last Synced: 2024-04-23T13:36:08.614Z (9 months ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
$ 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.