This is a modern JavaScript verification toolkit library, running on Node.js and in the modern browser, provide feature-rich verification function, making verification simple and fun.
In a browser:
<script src="validator.min.js"></script>
Using npm:
npm i --save jxm-validator
In Node.js:
// reference
const jxmValidator = require('jxm-validator');
// Check negative number
jxmValidator.isNegativeNumber(-2); // => true
jxmValidator.isNegativeNumber(-2.3); // => true
jxmValidator.isNegativeNumber(2.3); // => false
// Check postive integer
jxmValidator.isPositiveInteger(2); // => true
jxmValidator.isPositiveInteger(2.3); // => false
jxmValidator.isPositiveInteger(-2); // => false
API Docs, please open here.
If you have any question, please open an issue here.
If you see all changes, please open here.