etcsv
etcsv(.js) is node.js library to edit a table for CSV database.
"Editing Table for CSV"
Install
$ npm install etcsv
Usage
var etcsv = ; var table = etcsv; table; table; // overwrite savetable; // save as new file
etcsv Methods
etcsv.imports(filePath:String):etcsv.Table
Warning: Sync (not async) process. This is returned an instance of the etcsv.Table
Class.
var table = etcsv;
Table Class Methods
var table = etcsv;
table.setByFieldName(fieldName:String, callback:Function):void
This is fired records for set field name every time callback process. By returning value to the callback function, edit a value of that field.
If return undefined
, or does not return a value, a field value is not changed. But, if return null
or 0
, a field value will be overwritten by it.
table;