title: change data of a file which contain an array using node
body: <p>I have created a file called <code>config.js</code> which looks like below:</p>
  
  <pre><code>const config = {
      staticFiles:{
          name:[
              './',
              './index.html',
              './script.js',
              './icon.jpg'
          ]
      },
      outputFolderName: "D:\\DemoApp",
      sourceApplicationParentPath: "D:\\DemoApp\\"
  };
  </code></pre>
  
  <p>Now I am reading list of files from <code>sourceApplicationParentPath</code> folder using node and have to update <code>staticFiles</code> array of above file. I am not sure how should I do it. Can someone please help.</p>
  
  <p>Thanks in advance.</p>