An open API service indexing awesome lists of open source software.

https://github.com/vinodnextcoder/param-validator

A small parameter validation library
https://github.com/vinodnextcoder/param-validator

nodejs-request-validator npm-package npm-package-request-validate param-validator parameter-validation request-validate request-validator

Last synced: about 1 month ago
JSON representation

A small parameter validation library

Awesome Lists containing this project

README

          

# param-validator-node
**A small parameter validation library**

The purpose of this library is to easily check that the Missing parameter in node.js.

# Basic examples
```js

const { checkRequiredMissingParam } = require ('param-validator-node');
const requestPayload = { email: 'test@gmail.com' };
const checkRequiredParamm = ['name'];
const Validator = checkRequiredMissingParam(requestPayload, checkRequiredParamm);
//throws error Missing param [name]

```

- [Installation](#installation)
- [Documentation](#documentation)
- [Changelog](#changelog)
- [License](#license)

## Installation

```
npm i param-validator-node
```

Also make sure that you have Node.js 8 or newer in order to use it.

## License

MIT License