UNPKG
systemic
Version:
latest (4.1.2)
4.1.2
4.1.1
4.1.0
4.0.2
4.0.1
4.0.0
3.3.10
3.3.9
3.3.7
3.3.6
3.3.5
3.3.2
3.3.1
3.3.0
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.3
0.1.2
0.1.1
A minimal dependency injection library for node
guidesmiths.github.io/systemic/
guidesmiths/systemic
systemic
/
examples
/
simple
/
components
/
config.js
22 lines
(20 loc)
•
343 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module
.
exports
=
function
(
options
) {
async
function
start
(
dependencies
) {
return
{
logger
: {
level
:
'warn'
, },
mongo
: {
primary
: {
url
:
'mongo://primary'
, },
secondary
: {
url
:
'mongo://secondary'
, }, }, }; }
return
{
start
: start, }; };