snooze-csv
v1.0.0
Published
NPM csv-parse Wrapper for SnoozeJS
Downloads
6
Maintainers
Readme
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
http://csv.adaltas.com/