Skip to content

Instantly share code, notes, and snippets.

@HussainArif12
Last active January 11, 2022 22:20
Show Gist options
  • Save HussainArif12/ca8ed34a1cefe7b4198808dee8eed140 to your computer and use it in GitHub Desktop.
Save HussainArif12/ca8ed34a1cefe7b4198808dee8eed140 to your computer and use it in GitHub Desktop.
function addEntry(text) {
xlsx.utils.sheet_add_aoa(sheetValues, [text], { origin: -1 }); //the 'origin' property tells Node to append the entry to the next available row
xlsx.writeFile(fileContents, fileLocation);
}
addEntry(["Cake for girlfriend's birthday", 30]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment