# verification-tool **Repository Path**: sgout/verification-tool ## Basic Information - **Project Name**: verification-tool - **Description**: A js parameter verification tool that can support type, non-empty, etc. - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-28 - **Last Updated**: 2021-06-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # verification-tool A js parameter verification tool that can support type, non-empty, etc. ### Example ``` const verification = require('../lib/index').default; const Parameter = { id: { type: verification.NUMBER, allowNull: false, required: true, } } const result = verification.perform(Parameter, {id: 'id'}) console.log(result); //{ success: false, error: '参数错误,请检查参数是否正确!(id)' } ```