mirror of
https://github.com/harish2704/tconfig.git
synced 2026-09-10 15:11:08 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23b899df60 |
@@ -57,7 +57,7 @@ For eg:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
hari@hari-VirtualBox:~app$ env NODE_ENV=production TC_db.mysql.user=root node xyz.js
|
hari@hari-VirtualBox:~app$ env NODE_ENV=production TC_db.mysql.user=root node xyz.js
|
||||||
{ port: 5000, db: { mysql: { user: 'root' } } }
|
{ port: 4000, db: { mysql: { user: 'root' } } }
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Use custom env prefix.
|
##### Use custom env prefix.
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tconfig",
|
"name": "tconfig",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "A simple transparent config file loader for Nodejs applications. any config field can be overriden using environmen variables",
|
"description": "A simple transparent config file loader for Nodejs applications. any config field can be overriden using environmen variables",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -22,6 +22,5 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/harish2704/tconfig#readme",
|
"homepage": "https://github.com/harish2704/tconfig#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash.defaultsdeep": "^4.6.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user