snooze-csv
A simple wrapper for the NPM module csv.
Install
Install with npm
npm install snooze-csv --save
Use
Inject the module into your snooze module
require('snooze-csv');
snooze.module('MyModule', ['snooze-csv']);
Ready to use.
snooze.module('MyModule').service('MyServ', function($csv) {
return {
print: function() {
$csv.parse('"1","2","3"\n"4","5","6"', function(err, output) {
console.log(output); // [ ['1', '2', '3'], ['4', '5', '6'] ]
});
}
};
});
Documentation
See official csv documentation