# ball

> MongoDB ODM

Latest version **0.1.0** (published 2015-05-05) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-05-05 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nikita Gusakov |
| Maintainers | hell0w0rd |

## Links

- npm: https://www.npmjs.com/package/ball
- Repository: https://github.com/nkt/node-ball
- Homepage: https://github.com/nkt/node-ball#readme
- Issues: https://github.com/nkt/node-ball/issues
- npm.io page: https://npm.io/package/ball

## Dependencies (3)

- [mongodb](https://npm.io/package/mongodb.md) ^2.0.28
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.25
- [pluralize](https://npm.io/package/pluralize.md) ^1.1.2

## Recent versions

- 0.1.0 (latest) — 2015-05-05

## README

Ball
====

Simple MongoDB ODM

Usage
-----

```js
const {Ball} = require('ball');

let db = new Ball('mongodb://localhost/db');

class User {
  getFullName() {
    return `${this.firstName} ${this.secondName}`;
  }
}

db.find({}).map((user) => {
  console.log({
    fullName: user.getFullName()
  });
}).catch((err) => {
  // error handling
})
```

License
-------
[MIT](LICENSE)

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