bestow-config

Bestow JSON Configuration as per Environment

Usage no npm install needed!

<script type="module">
  import bestowConfig from 'https://cdn.skypack.dev/bestow-config';
</script>

README

bestow-config

Get your configuration "json" file by just passing filename

Structure

ProjectName
      node_modules
      config
           uat.json
           dev.json
      other files
      package.json

How to Run

    npm install bestow-config --save
    
    const bestow = require("bestow-config");
    
    const jsonData = bestow("uat")

How to Use

  • Create config folder in root of your project.
  • Create json config files with json as extension like eg: uat.json, dev.json, prod.json and then put all your json content into it.
  • Now calling bestow("environment_file_name") will give you all json content of that file.

Author: Yogendra Saxena