# mongobine

> easy wrapper around mongo js driver supporting basic crud operations

Latest version **1.1.6** (published 2021-07-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install mongobine
pnpm add mongobine
yarn add mongobine
bun add mongobine
```

## 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.1.6 |
| Published | 2021-07-01 |
| First published | 2021-06-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dhiraj1site |
| Maintainers | dhiraj1site |
| Keywords | mongodb, wrapper |

## Links

- npm: https://www.npmjs.com/package/mongobine
- Repository: https://github.com/dhiraj1site/mongobine
- Homepage: https://github.com/dhiraj1site/mongobine#readme
- Issues: https://github.com/dhiraj1site/mongobine/issues
- npm.io page: https://npm.io/package/mongobine

## Dependencies (1)

- [mongodb](https://npm.io/package/mongodb.md) ^3.6.9

## 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

- 1.1.6 (latest) — 2021-07-01
- 1.1.5 — 2021-07-01
- 1.1.4 — 2021-07-01
- 1.1.3 — 2021-06-30
- 1.1.2 — 2021-06-25
- 1.1.1 — 2021-06-24
- 1.0.2 — 2021-06-24
- 1.0.1 — 2021-06-23
- 1.0.0 — 2021-06-21

## README

# MongoBine
Mongobine is a simple wrapper around javascript mongodb driver. It offers basic CRUD operations

# Installation

`npm install mongobine`

# How to use

```node
var mongobine = require('mongobine');

// create a new mongo instance passing your connection details
var mongo = new mongobine({collection: 'users', url: 'mongodb://localhost:27017', document: 'binebox'});

// Allows you to basic simple CRUD operations for mongodb

//create
mongo.insert({email: "myemail@email.com"});

//retrieve
mongo.find({email: "myemail@email.com"});

//update
mongo.update({email : "myemail@email.com"}, {code: 23}).then(res => {
    console.log('got the update response', res);
});

//delete
mongo.delete({email: "myemail@email.com"});
```

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