This module allows for an easy way to create a clean, properly-escaped CSV document stream from any RethinkDB query. In order for this to work correctly, you must be using the rethinkdbdash module--it will not work using the "official" driver since the official driver does not support streaming results.
How to install
npm install rethink2csv
Licensed under MIT: http://www.opensource.org/licenses/mit-license.php
This quick example shows how to create a CSV file from a RethinkDB query.
var fs = ;var file = fs;var rdb = ;var r2c = ;var query = rdb;r2c;
The module uses the csv-write-stream module to create clean escaped CSV streams. You can pass any option supported by this module using the
var r2c =csv:separator: ','newline: '\n'headers: falsesendHeaders: false;
Got a missing feature you'd like to use? Found a bug? Go ahead and fork this repo, build the feature and issue a pull request.