# mongoose-serverless

> Mongoose connection serverless

Latest version **0.0.1** (published 2018-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install mongoose-serverless
pnpm add mongoose-serverless
yarn add mongoose-serverless
bun add mongoose-serverless
```

## 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.1 |
| Published | 2018-10-19 |
| First published | 2018-10-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Abraham Silva |
| Maintainers | abrahamjso |
| Keywords | mongoose, serverless, connection, mongodb |

## Links

- npm: https://www.npmjs.com/package/mongoose-serverless
- Repository: https://github.com/abrahamjso/mongoose-serverless
- Homepage: https://github.com/abrahamjso/mongoose-serverless#readme
- Issues: https://github.com/abrahamjso/mongoose-serverless/issues
- npm.io page: https://npm.io/package/mongoose-serverless

## Dependencies (1)

- [mongoose](https://npm.io/package/mongoose.md) ^5.3.4

## 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.1 (latest) — 2018-10-19

## README

# mongoose-serverless

mongoose-serverless is for mongoose connections in serverless (function paradigm).
```js
const myMongo = require('mongoose-serverless');

...
const urlConnection = '<urlConnectonMongoose>'

async function doSomethingWithDB() {
    try {
        await myMongo.connectToDatabase(urlConnection);
        // mongoose queries
    } catch (e) {
        throw new Error(e);
    }
}
...
```

# Install

```console
$ npm install mongoose-serverless
```

# Contribute

If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.

# License
Copyright &copy; 2018, Abraham Silva. Licensed under the [ISC License](LICENSE).

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