Replace a value in a json file with value from another file using fs
I want to read the values of key, access, path, bucket and bucketPath and use them in the JSON file test.json. I have a function that reads the content of configuration.js and attempts to write to test.json. Currently, I am…