# dynamicmasters

> create dynamic masters

Latest version **1.0.4** (published 2020-08-25) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-08-25 |
| First published | 2020-08-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 37.8 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Raj Thakkar |
| Maintainers | thakkarraj284 |
| Keywords | npm, dynamicmasters, masters, dynamic, npm masters |

## Links

- npm: https://www.npmjs.com/package/dynamicmasters
- Repository: https://github.com/rajt26/Build-Npm-Package
- Homepage: https://github.com/rajt26/Build-Npm-Package#readme
- Issues: https://github.com/rajt26/Build-Npm-Package/issues
- npm.io page: https://npm.io/package/dynamicmasters

## Dependencies (4)

- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [mongoose](https://npm.io/package/mongoose.md) ^5.10.0
- [decimal.js](https://npm.io/package/decimal.js.md) ^10.2.0

## Recent versions

- 1.0.4 (latest) — 2020-08-25
- 1.0.3 — 2020-08-25
- 1.0.1 — 2020-08-24
- 1.0.0 — 2020-08-24
- 1.0.5 — 2020-08-24

## README

# dynamicmasters

## Installation

**Installation is done using the npm install command**
```
npm install dynamicmasters
```

- **simple to use**
```
const dynamicmasters = require('dynamicmasters')
dynamicmasters.master(action, params)
```


- **action** you can pass following action:
```
CREATE
UPDATE
SOFTDELETE
DELETE
VIEW

```

- **Methods of dynamicmasters**
```
1.master  //for master crud operations
2.country //for country crud operations
3.state  //for state crud operations
4.city  //for city crud operations

```

- **Database Connection**
- create .env file
```
mongoURI='connection string'
```

## Example

```
const dynamicmasters = require('dynamicmasters')
app.post('/master/create', async (req, res) => {
    try {
        let params = {
            name: req.body.name,
        }
        let action = 'CREATE'
        let response = await dynamicmasters.master(action, params)
        return res.send(response)
    } catch (error) {
        console.log('error', error)
        res.send(error)

    }
})
```



## https://github.com/rajt26/dynamicmasters_demo

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