A small parameter validation library
The purpose of this library is to easily check that the Missing parameter in node.js.
const{ checkRequiredMissingParam }=require('param-validator-node');constrequestPayload={email: 'test@gmail.com'};constcheckRequiredParamm=['name'];constValidator=checkRequiredMissingParam(requestPayload,checkRequiredParamm);//throws error Missing param [name]npm i param-validator-node
Also make sure that you have Node.js 8 or newer in order to use it.
MIT License