1.0.1 • Published 4 years ago

simple-json-config v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

get-config

Simple Node helper to get an JSON file as config input for any kind of application

Get a config data from object merged with a given file given by the default parameter -c

See Example folder for examples :D

This will load the default file 'config.json'

node default.js

This will load the config from the -c parameter

node default.js -c ./second.json

This will try to reach a config file with a custom parameter --file instead of a default -c

node custom.js --file ./second.json