Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 795 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 795 Bytes

hive:export-csv

Package to implement CSV exporting on a collection with specified filters.

Installation

To install the package, create a packages/ directory in your meteor app, and move hive:export-csv there. Then run meteor add hive:export-csv

ex:

API

exportCSV() - server

action for a server-side route

writeCSV(collection, filter, fields, [filename], stream) - server

writes specified collection documents into stream as flattened CSV

downloadCSV(collectionName, filters, fields, filename) - client

automatically download a csv file with the data selected. probably deprecated - consider unstable