'use strict';

const { resolve } = require('path');

const define = require('./define');

const fs = require('fs');
const staging = `.env.${define.rs_environment}`;
const dotenv = require('dotenv');

const config = dotenv.config({
    path: resolve(process.cwd(), staging)
});

const formatter = (params, stringify = false) => {
    const length = Object.keys(params).length;

    if (length) {
        for (let x in params) {
            if (stringify) {
                params[x] = JSON.stringify(params[x]);
            }
        }
    }

    return params;
}

module.exports.config = config.parsed;
module.exports.formatter = formatter;



@@ -384,16 +384,29 @@
  (length
+ && stringify
 ) %7B%0A    
@@ -437,41 +437,8 @@
 ) %7B%0A
-            if (stringify) %7B%0A    
     
@@ -488,22 +488,8 @@
 %5D);%0A
-            %7D%0A
     

fix formatter