# mangos

> Mangos.js is a simple module to make MongoDB syntax CRUD. It uses and exposes controls straight from MongoDB's Native driver

Latest version **0.1.3** (published 2013-02-24) · BSD license · 0 weekly downloads

## Install

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

## 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.1.3 |
| Published | 2013-02-24 |
| First published | 2013-01-19 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jacob Lowe |
| Maintainers | jacob2dot0 |
| Keywords | mango, mongodb, mongo, CRUD |

## Links

- npm: https://www.npmjs.com/package/mangos
- Repository: https://github.com/jacoblwe20/mangos
- npm.io page: https://npm.io/package/mangos

## Dependencies (1)

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

## 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.1.3 (latest) — 2013-02-24
- 0.1.2 — 2013-02-05
- 0.1.1 — 2013-01-27
- 0.1.0 — 2013-01-25
- 0.0.7 — 2013-01-19

## README

## Mangos

#### mango_js is now mangos

Mangos.js is a simple module to make MongoDB syntax CRUD. It uses and exposes controls straight from MongoDB's Native driver

#### Documentation in the code!

## Install

```shell
npm install mangos
```
you can install it locally for development by doing this

```shell
git clone https://github.com/jacoblwe20/mango_js.git
cd ~/your_app
npm install ../mango_js
```

then in your code

```javascript
// to include
var Mangos = require('mangos');
//to use
var userSet = new Mangos('users', 'localhost', 27017);
// or with a mongo uri
var locations = new Mangos('locations', 'mongodb://admin:supersecret@cooldbs.io/yourdb');
// Dont do this the code is not synchronous
userSet.create({name : 'Jacob'}, function(err, user){
  // if no error user is created
  console.log(user._id);
});

userSet.read({name : 'Jacob'},function(err, users){
  console.log(users); // array of users with Jacob as name
});

userSet.update({id : '50e3bdb52fc1c5d15a000001', status : 'active'}, function(err, user){
  // if no err user is updated
});

userSet.delete('50e3bdb52fc1c5d15a000001', function(err, user){
  // if no error user is deleted
});

```

Not enough control... well you can still use the native driver

```javascript
userSet.db.open()
// Mongo Db Native Driver Object
userSet.db.collectionNames(function(err, names){
	console.log(names);
});
userSet.db.close()
```

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