SkReD / fridgefm-inverter

Powerful and simple inversion of control library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@fridgefm/inverter

A powerful and tiny IoC library heavily inspired by ditox. Lets you create highly scalable modular apps and libraries.

npm package minzipped size downloads open issues

Key features

  • Powerful TS support
  • NestJS-similar API
  • Does not require reflect-metadata
  • Static provider declaration and no inconsistency
  • Hierarchical containers
  • Multi-token support
  • Works in Node and browser
  • Good unit test coverage

Installation

npm install @fridgefm/inverter --save

or

yarn add @fridgefm/inverter

Examples

Example usage is shown here in examples. You can start the example app

# cli calculator app
yarn example src/examples/calc-app/
# or its debug version
yarn example:debug src/examples/calc-app/
# basic server app
yarn example src/examples/server-app/
# or its debug version
yarn example:debug src/examples/server-app/

About

Powerful and simple inversion of control library

License:MIT License


Languages

Language:TypeScript 100.0%