1.0.3 • Published 4 years ago

basic-read-config v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Basic Read Config

To load config file json from recived path and default config.

  • get ./config.json by default
  • if does not exists no problem
  • you can use default config object
  • if config json file exists they overrite values

Use

here if user pass args -c path_of_file then basic-read-config module get config json file of path

Example: node app.js -c C:/folder/myjson.json

var config = require("basic-read-config") ;

var myConfig = config({ a:1, b:2 });//pass default config if file not founded or not passed
console.log ( myConfig ) ;
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago