# mongodb.ts

> ``` git clone https://github.com/Goyoo/mongodb.ts.git npm install npm run build ```

Latest version **0.0.3** (published 2016-11-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install mongodb.ts
pnpm add mongodb.ts
yarn add mongodb.ts
bun add mongodb.ts
```

## 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.3 |
| Published | 2016-11-21 |
| First published | 2016-11-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | junjun16818 |

## Links

- npm: https://www.npmjs.com/package/mongodb.ts
- npm.io page: https://npm.io/package/mongodb.ts

## Dependencies (1)

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

## Recent versions

- 0.0.3 (latest) — 2016-11-21
- 0.0.2 — 2016-11-21
- 0.0.1 — 2016-11-21

## README

# build
``` 
    git clone https://github.com/Goyoo/mongodb.ts.git
    npm install
    npm run build
```


# Install:
```
    npm install typescript.ts
```
# Usage

```

    const Mongodb = require('mongodb.ts')
    const db = Mongodb.connect('mongo_url')

    interface IUser{
        _id: string
        username: string
        password: string
        created: number
    }

    const Users = db.collection<IUser>('users')

    await Users.insert({_id: '1', name: 'moon', password: '123123', created: Date.now() })
    const user = await Users.findOne({_id: '1'})
    const users = await Users.find({}).limit(limit).skip(limit * page).sort({created: -1}).toArray()
    await Users.remove({_id: 1})


```

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