simple-json-config

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i simple-json-config

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.71 kB

Total Files

8

Last publish

Collaborators

  • alanlucian