# node-mongodb-crud

> This is used to make CRUD operations in Node.js with MongoDB.

Latest version **0.0.2** (published 2018-07-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-mongodb-crud
pnpm add node-mongodb-crud
yarn add node-mongodb-crud
bun add node-mongodb-crud
```

## 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.2 |
| Published | 2018-07-13 |
| First published | 2018-07-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mandar Raskar |
| Maintainers | mandarraskar |
| Keywords | npm, node-mongodb-crud, npm-mongodb-crud, node.js, mongodb, mongodb crud, node with mongodb, mongodb-crud |

## Links

- npm: https://www.npmjs.com/package/node-mongodb-crud
- Repository: https://github.com/mandar-raskar/mongodb-crud
- Homepage: https://github.com/mandar-raskar/mongodb-crud#readme
- Issues: https://github.com/mandar-raskar/mongodb-crud/issues
- npm.io page: https://npm.io/package/node-mongodb-crud

## Dependencies (8)

- [cors](https://npm.io/package/cors.md) ^2.8.4
- [path](https://npm.io/package/path.md) ^0.12.7
- [logger](https://npm.io/package/logger.md) 0.0.1
- [morgan](https://npm.io/package/morgan.md) ^1.9.0
- [express](https://npm.io/package/express.md) ^4.16.3
- [mongodb](https://npm.io/package/mongodb.md) ^3.1.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.3
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3

## 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.2 (latest) — 2018-07-13

## README

# Install 
```
    npm install node-mongodb-crud
```

# Usage
 This is used to make the connection and generate CRUD operations(find,insert, update, delete)  in Node.js with MongoDB.

#index.js
```JavaScript
var Mongo-Crud = require("node-mongodb-crud");
  Mongo-Crud.connect("mongodb://localhost:27017/"Database_Name",function(err,db){
      //To get the data from database
        Mongo-Crud.find(db,"Database_Name","Collection_Name");

      //Insert the data in database
        Mongo-Crud.insert(db,"Database_Name","Collection_Name","Data_you_want_to_Insert");

      //Update the data in database
        Mongo-Crud.update(db,"Database_Name","Collection_Name","Insert_Object_Id","Data_you_want_to_Update");

      //Delete the data from database
        Mongo-Crud.delete(db,"Database_Name","Collection_Name","Insert_Object_Id");
        })

```

#Run from Terminal
```
    node index.js
```

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