File tree 2 files changed +42
-2
lines changed
2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 1
1
# node.js-parameter-handler
2
2
parameter handler
3
+
4
+ ## how to install
5
+ ```
6
+ npm install node.js-parameter-handler
7
+ ```
8
+
9
+
10
+ ## how to execute tests
11
+ ```
12
+ npm test
13
+ ```
14
+ with coverage
15
+ ```
16
+ npm test -- --coverage
17
+ ```
18
+
19
+ ## how to use
20
+ include configs into root package.json into 'extra' node
21
+
22
+ obverve below sample of package.json
23
+
24
+ ```
25
+ # package.json
26
+ {
27
+ ...
28
+ "extra": {
29
+ "node_parameter_handler": [
30
+ {
31
+ "source": "tests/fixtures/settings.json.dist", # source
32
+ "output": "var/settings.json", # output
33
+ "envMap": {
34
+ "touched": "BASE_URL", # json path to ENV VARIABLE
35
+ "test.touched": "PWD",
36
+ "test.test.touched": "HOME"
37
+ }
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " node.js -parameter-handler" ,
3
- "version" : " 0.1.0 " ,
2
+ "name" : " node-parameter-handler" ,
3
+ "version" : " 0.1.1 " ,
4
4
"description" : " build .json files which can be used as settings" ,
5
5
"main" : " index.js" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments