@scottsloane/nodeods

1.0.9 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i @scottsloane/nodeods

Weekly Downloads

1

Version

1.0.9

License

WTFPL

Unpacked Size

4.75 kB

Total Files

3

Last publish

Collaborators

  • scottsloane