NodeODS
ODS reading, writing, and templating for XREF projects
Usage
Include ODS
const ODS = require('./index.js');
Make an ODS object
const ods = ODS();
Load a File
ods.Load('filename.ods');
Parse a Loaded File
let row = true;
while (row !== false){
row = ods.getNextRow();
if(row != false) doSomething(row);
}
{OR} Initilize a new File
output.init({
A : 'column1Header',
B : 'column2Header',
C : 'column3Header'
});
Adding a Row
ods.addRow({ column1Header: 'Column 1 Value',
column2Header: 'Column 2 Value'});
Saving your File
output.Save('filename.ods');