1.0.1 • Published 7 years ago

rethink-to-csv v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

rethink-to-csv

Node.js CLI module to Export RethinkDB Tables to CSV files

npm version Build Status Coverage Status Dependency Status

How to use

Install Locally

$ npm install rethink-to-csv --save-dev
$ yarn add rethink-to-csv --dev 

And include as an script in your package.json:

{
...
  "scripts": {
    "export": "rethink-to-csv"
  },
...
}

Which you can then run as npm run export

Install Globally

To run from the Command Line

$ npm install -g rethink-to-csv --save
$ yarn global add rethink-to-csv

The following Environment Variables are required in order to run:

RETHINK_HOST={hostname} # i.e. localhost
RETHINK_PORT={port} # i.e. 28015
RETHINK_USER={user} # i.e. admin
RETHINK_PASS={password}
RETHINK_DB_NAME={database name}

It will inject environment vairables from a .env file if one is found in the directory where the script is executed.