Validator
Table of Contents
The @liskhq/lisk-validator package is a wrapper of validation packages. It includes custom validations utilities related to the Lisk Protocol.
Usage
const validator = require('@liskhq/lisk-validator');
console.log(validator.MAX_SINT64) //9223372036854775807n
Constants
MAX_SINT32: 2147483647, MIN_SINT32: -2147483647, MAX_UINT32: 4294967295, MAX_UINT64: 18446744073709551615n, MAX_SINT64: 9223372036854775807n, MIN_SINT64: -9223372036854775808n
Validation methods
isRangedSemVer
Checks if a given input is a ranged SemVer (Semantic Versioning), version.