param-validator-node
Version:
parameter validator module.
35 lines (22 loc) • 728 B
Markdown
**A small parameter validation library**
The purpose of this library is to easily check that the Missing parameter library for node.js
```js
const { checkRequiredMissingParam } = require ('param-validator-node');
const requestPayload = { email: 'test@gmail.com' };
const checkRequiredParamm = ['name'];
const Validator = checkRequiredMissingParam(requestPayload, checkRequiredParamm);
//throws errro Missing param [name]
```
- [Installation](
- [Documentation](
- [Changelog](
- [License](
```
npm i param-validator-node
```
Also make sure that you have Node.js 8 or newer in order to use it.
MIT License