config node js code example
Example 1: nodejs config file
{
"app": {
"port": 3000
},
"db": {
"host": "localhost",
"port": 27017,
"name": "ydb"
}
}
Example 2: install config react js
$ npm install config$ mkdir config$ vi config/default.json