title: SheetJS / excel4node modify xlsx file without changing anything else
body: <p>I have a JSON data like:</p>
  <p>data = [
  name: &quot;test&quot;,
  age:50,
  country: &quot;America&quot;
  ]</p>
  <p>And I read excel file which looks like that
  <a href="https://imgur.com/a/InyUXxv" rel="nofollow noreferrer">https://imgur.com/a/InyUXxv</a>
  (File is more complex, I have more static images and a lot of more text --&gt; around 1000 cells filled)</p>
  <p>So The problem is that I need to fill the JSON data to the excel file.
  The Excel file will allways be the same and the data will allways go to same cell.</p>
  <p>I can read this Excel template file and update it and write it back in new file but if I do that, I lost images. New file is without images</p>
  <p>With excel4node I can write separate images to excel file but I don't know how can i read that file and than write the same back..</p>
  <p>Code example for xlsx npm package, where I lost images when writing same file to Excel..</p>
  <p>Can someone help me with anything? I am stuck here for a few days and I can't find a solution..</p>
  <p>Node.js code:</p>
  <pre><code>var xlsx = require(&quot;xlsx&quot;);
  
  exports.generateExcel = async () =&gt; {
    var excelFile = await 
    xlsx.readFile(&quot;./utilities/template.xlsx&quot;);
    const { SheetNames: sheetNames } = excelFile;
    var data = xlsx.utils.sheet_to_json(excelFile.Sheets[sheetNames[0]]);
  
    console.log(data);
  
    var ws = xlsx.utils.json_to_sheet(data);
  
    var wb = xlsx.utils.book_new();
    xlsx.utils.book_append_sheet(wb, excelFile, &quot;Tests&quot;);
  
    xlsx.writeFile(excelFile, &quot;./utilities/novooo.xlsx&quot;);
  
  };
  </code></pre>
  <p>So When I write file it is written without images. In the template.xlsx there are images (I read this file in the beginning of the code and store it as variable)</p>