# mongoexport-wrapper

> A wrapper around mongoexport command.

Latest version **1.0.1** (published 2017-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongoexport-wrapper
pnpm add mongoexport-wrapper
yarn add mongoexport-wrapper
bun add mongoexport-wrapper
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-06-26 |
| First published | 2017-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Uttam Aaseri |
| Maintainers | ut |

## Links

- npm: https://www.npmjs.com/package/mongoexport-wrapper
- Repository: https://github.com/uttamaaseri/mongoexport-wrapper
- Homepage: https://github.com/uttamaaseri/mongoexport-wrapper#readme
- Issues: https://github.com/uttamaaseri/mongoexport-wrapper/issues
- npm.io page: https://npm.io/package/mongoexport-wrapper

## Dependencies (1)

- [execa](https://npm.io/package/execa.md) ^0.7.0

## Recent versions

- 1.0.1 (latest) — 2017-06-26
- 1.0.0 — 2017-06-26

## README

# mongoexport-wrapper

> A node js wrapper around [`mongoexport`](https://docs.mongodb.com/manual/reference/program/mongoexport/) command


## Install

```
$ npm install --save mongoexport-wrapper
```

## Usage

```js
var mongoexport = require('mongoexport-wrapper');

var opt = {
	host : '127.0.0.1:27017' //<hostname><:port>  Default: localhost:27017
	db : 'test',
	collection :'user',
	fields : "user,email,contact",
	out : 'users.csv',
	type : 'csv'
}
//mongoexport command should be in path variable
//all options for mongoexport command can be used

mongoexport(opt,(err,result)=>{
	if(err) console.log(err);
	else console.log(result);
});
```

---
_Source: https://npm.io/package/mongoexport-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
