# mongodb-get-props

> Returns properties names for mongodb collections.

Latest version **0.0.8** (published 2019-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongodb-get-props
pnpm add mongodb-get-props
yarn add mongodb-get-props
bun add mongodb-get-props
```

Provides the command `mgp`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2019-04-19 |
| First published | 2018-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 119.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | indatawetrust |
| Maintainers | cond |
| Keywords | mongodb, get, props, properties |

## Links

- npm: https://www.npmjs.com/package/mongodb-get-props
- Repository: https://github.com/indatawetrust/mongodb-get-props
- Homepage: https://github.com/indatawetrust/mongodb-get-props#readme
- Issues: https://github.com/indatawetrust/mongodb-get-props/issues
- npm.io page: https://npm.io/package/mongodb-get-props

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^13.2.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.10

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2019-04-19
- 0.0.7 — 2018-08-19
- 0.0.6 — 2018-08-18
- 0.0.5 — 2018-08-18
- 0.0.4 — 2018-07-29
- 0.0.3 — 2018-07-29
- 0.0.1 — 2018-07-21

## README

[![Build Status](https://travis-ci.org/indatawetrust/mongodb-get-props.svg?branch=master)](https://travis-ci.org/indatawetrust/mongodb-get-props)

#### install
```
npm i mongodb-get-props --save
```

#### usage
```js
const getProps = require('mongodb-get-props')

;(async () => {

  const MongoClient = require('mongodb').MongoClient;

  const uri = 'mongodb://localhost:27017/db'

  const client = await MongoClient.connect(uri,{ useNewUrlParser: true });

  // database and collection name
  await getProps(client.db('project'), 'song')

  // sample output
  {
    __v: 'int',
    _id: 'objectId',
    artist_name: 'string',
    created_at: 'date',
    track_name: 'string',
    updated_at: 'date'
  }

})();
```

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