1.5.3 • Published 4 years ago

@jeff-tian/mongo-csv v1.5.3

Weekly downloads
11
License
ISC
Repository
github
Last release
4 years ago

@jeff-tian/mongo-csv

Export mongodb collections to csv files

Git commit with emojis! Build Status semantic-release npm version Dependency Status Open Source Love

Quality gate

Prerequisites

  • node and npm installed

Installation

npm install mongo-csv --global

Typical Usage

mongo-csv config --write=true
# change your config (mongodb connection uri, etc)
mongo-csv export
ls # your csv files there

Why

There are already some command line tools for that, why reinvent the wheel?

I found it's hard to install the other client tools, especially on some alpine containers. But it's easy to run npm instal on those containers which installed nodejs and especially for those nodejs containers.

There is a similar one https://github.com/rouanw/mongo-csv and is almost what I need but it's not that easy to configure the mongodb connection uri. I mean I just want to configure a simple connection string. But all those tools in the world need to configure port, username, password separately, I hate them.

So I come to this step to write a tool by myself.

1.5.3

4 years ago

1.5.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago