snooze-csv

1.0.0 • Public • Published

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/

Package Sidebar

Install

npm i snooze-csv

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • iamchairs