ArrayToCsvBalanced is a very lightweight package that given an array generates a csv file in a specified directory.
Use the package manager npm to install.
npm install arraytocsvbalanced
const ArrayToCsv = require('arraytocsvbalanced');
let options = { logs:true };
ArrayToCsv.processToFile(yourArray, fileName, loadSize, installPath, options);
const ArrayToCsv = require('arraytocsvbalanced');
ArrayToCsv.processToFile([0,0,0,1,2,10,111,400,10], 'myFile', 3, './', { logs:true });
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.