https://github.com/adrielcodeco/pii-di
A library to dependency injection implementation
https://github.com/adrielcodeco/pii-di
Last synced: 10 months ago
JSON representation
A library to dependency injection implementation
- Host: GitHub
- URL: https://github.com/adrielcodeco/pii-di
- Owner: adrielcodeco
- License: mit
- Created: 2018-06-01T14:14:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T16:34:40.000Z (over 7 years ago)
- Last Synced: 2025-06-27T12:18:20.845Z (11 months ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Pii DI](https://github.com/adrielcodeco/pii-di)
Pii DI is a library to dependency injection implementation
[](http://standardjs.com)
[](https://travis-ci.org/adrielcodeco/pii-di)
[](https://ci.appveyor.com/project/adrielcodeco/pii-di/branch/master)
[](https://coveralls.io/github/adrielcodeco/pii-di?branch=master)
[](https://npmjs.org/package/@pii/di)
## Installation
```
npm i -S @pii/di
```
## Requirements
* NodeJS version >= 6
## Documentation
* [Quick Start](https://adrielcodeco.github.io/pii-di#quick-start)
* [Examples](https://github.com/adrielcodeco/pii-di/tree/master/examples)
## Examples
Here is a simple example to get you started:
index.ts
```ts
import { Container } from '@pii/di'
Container.addSingleton('test', 12345)
const test = Container.get('test')
console.log(test)
```
### License
This project is [MIT licensed](./LICENSE).
[](http://standardjs.com)