{"_id":"@alidatorjs/is-less-than","_rev":"1-87b97b467a74ecbc08b2bcb124d67b52","name":"@alidatorjs/is-less-than","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alidatorjs/is-less-than","version":"1.0.0","description":"Tiny function to validate if a value is less than other","author":{"name":"Víctor García"},"repository":{"type":"git","url":"https://github.com/gc-victor/alidatorjs/tree/master/packages/is-less-than"},"license":"MIT","publishConfig":{"access":"public"},"keywords":["alidator","validator","validation","javascript","library"],"main":"dist/is-less-than.js","umd:main":"dist/is-less-than.umd.js","module":"dist/is-less-than.m.js","source":"is-less-than.js","typings":"is-less-than.d.ts","types":"is-less-than.d.ts","directories":{"example":"../../examples"},"scripts":{"test":"../../node_modules/.bin/tap -J --node-arg=-r --node-arg=esm *.test.js","test:progress":"yarn test --reporter=progress","test:watch":"yarn test:progress && ../../node_modules/.bin/chokidar './*.js' -c 'yarn test:progress'"},"_id":"@alidatorjs/is-less-than@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"gc-victor","email":"gc.victor@gmail.com"},"dist":{"integrity":"sha512-U4Tsfj9AocTEF8XnIPw5WeRR9qE4x6k5MTFK8uxnf9G6IPNIQazLqKwXivwftYYL0pLocbypSUmuUeQ96+MLqA==","shasum":"49584198c752a3d463b2e2ed22d08fdba2c50dca","tarball":"https://registry.npmjs.org/@alidatorjs/is-less-than/-/is-less-than-1.0.0.tgz","fileCount":12,"unpackedSize":3753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcHugCRA9TVsSAnZWagAAiMUP/1dLMb/WgOow5M2bbLvs\nOmwQgTvV765GrfqxOYmyB1xevRyh4l1ZJRhBSd2FaDmR5Yb4FEiovC1PPP7/\nB8cF2/2itueovWP5QvHe8Xe9RjApfC+iHfYgEc/CFegb9Bg7U67/pKh/ZDrG\nT6X8NUfsDYEbwqlFw4mEMDAoy8lXhvwrXZfkNPBzEqJsvMNurdzSV2zCEVFx\nONJfTaki8ZbTJxgrGfFKqrLZaToLfjbpYVnA+T7tNulmzvlj4vXJO78MQ3HZ\naAGfx6w4RNgO2ux3L2yd5vhTy/VoTvy5jYBefJ0c7XJc7ztkk9wzS/wJE0z/\nVE22j7FnjfqWB+60rdTEsq0vldq8IHNRgfDmBoJ+ru5xYelsGiJqCafRwtO7\njPao/1exl366kbRcc/Lx8DO5J82RM2ugSEFvT8iyYgErw5vclyVpCU5nBWSb\nmQNAaUwEbGXCkYMziyw+J5MCfG/ljVf2lCDU9tA9ohUyanNrL/QjcU/6IE+e\ntIPcipHnem2Edv3P1UsGjcmWF5EpLe7lHCq6qJaihRzlyXNESKfK8mLiqFdL\nN5bj9RsG1xvhhdodKGjeDmlDgu/yqIjN4Eop7GeJ9md6OsV82Fe0rWGBIis8\njQfrsjnCCVARDCrVtiHBN8/4+kDaWS9shTiuJGRMvheWEPvTKn/gnSgutkKR\nvz0L\r\n=7LR8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBcQc3vJ4DdFuBcpdvb+CzAwCACEQHmvl4mMSv7SBfglAiBWcNHI9SFt530zMtC1KwnilPxLFcceMVNAcqriTZSx5Q=="}]},"maintainers":[{"name":"gc-victor","email":"gc.victor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-less-than_1.0.0_1534098335902_0.5422466209706716"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-12T18:25:35.854Z","1.0.0":"2018-08-12T18:25:36.006Z","modified":"2022-04-04T12:59:08.409Z"},"maintainers":[{"name":"gc-victor","email":"gc.victor@gmail.com"}],"description":"Tiny function to validate if a value is less than other","keywords":["alidator","validator","validation","javascript","library"],"repository":{"type":"git","url":"https://github.com/gc-victor/alidatorjs/tree/master/packages/is-less-than"},"author":{"name":"Víctor García"},"license":"MIT","readme":"# is-less-than\n\nTiny function, compatible with Alidator.js, to validate if a value is less than other.\n\n## Install\n\nYou can use npm or yarn to install it.\n\n`$ npm install --save @alidatorjs/is-less-than`\n\n`$ yarn add @alidatorjs/is-less-than`\n\nThen with a module bundler like rollup or webpack, use as you would anything else:\n\n```\n// using ES6 modules\nimport { isLessThan } from '@alidatorjs/is-less-than'\n\n// using CommonJS modules\nvar { isLessThan } = require('@alidatorjs/is-less-than')\n```\n\n## Usage\n\nIs as easy as define an array with the validations.\n\n```\nimport { validator } from '@alidatorjs/validator';\nimport { isLessThan } from '@alidatorjs/is-less-than';\n\nconst isValid = validator([\n    isLessThan(0, 1),\n    isLessThan(1, 2),\n    isLessThan(2, 3),\n]).every; // true\n\nconst errors = validator([\n    [isLessThan(1, 0), () => 'Error 1'],\n    [isLessThan(1, 2), () => 'Error 2'],\n    [isLessThan(3, 2), () => 'Error 3'],\n]).errors; // ['Error 1', 'Error 3']\n```\n\n## License\n\n[MIT License]((https://github.com/gc-victor/alidatorjs/blob/master/LICENSE.md))\n","readmeFilename":"README.md"}