ProviderJS
A NodeJS framework for create general purpose.
Write using TypeScript with Visual Studio Code.
import { Injectable, Application } from 'providerjs';
@Injectable()
export class OneService {
public value = 'OneService';
}
@Application({
imports: [],
providers: [OneService],
exports: []
})
export class OneModule {
public constructor(
oneService: OneService
) {
console.log('OneModule constructor: OneService: ' + oneService.value);
}
}
Installation
$ npm install providerjs
Features
- Lightweight
- Dependencie Inject system
- Intercept abstract implementation
Docs
- Github for Official Code
Quick Start
Create a empty NPM package:
npm init -y
Install ProviderJS:
npm install providerjs --save
Work with code:
code .
Example
https://github.com/Cliveburr/providerjs/tree/master/tests