Ecosyste.ms: Awesome
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 2 months ago
JSON representation
A small parameter validation library
- Host: GitHub
- URL: https://github.com/vinodnextcoder/param-validator
- Owner: vinodnextcoder
- License: mit
- Created: 2022-07-14T07:57:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T08:17:58.000Z (over 2 years ago)
- Last Synced: 2024-10-10T23:32:28.636Z (2 months ago)
- Topics: nodejs-request-validator, npm-package, npm-package-request-validate, param-validator, parameter-validation, request-validate, request-validator
- Language: TypeScript
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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
```jsconst { checkRequiredMissingParam } = require ('param-validator-node');
const requestPayload = { email: '[email protected]' };
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