{"_id":"@alidatorjs/is-greater-than","_rev":"1-9ce57d2655c75c8030eac15b91e62ed8","name":"@alidatorjs/is-greater-than","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alidatorjs/is-greater-than","version":"1.0.0","description":"Tiny function to validate if a value is greater than other","author":{"name":"Víctor García"},"repository":{"type":"git","url":"https://github.com/gc-victor/alidatorjs/tree/master/packages/is-greater-than"},"license":"MIT","publishConfig":{"access":"public"},"keywords":["alidator","validator","validation","javascript","library"],"main":"dist/is-greater-than.js","umd:main":"dist/is-greater-than.umd.js","module":"dist/is-greater-than.m.js","source":"is-greater-than.js","typings":"is-greater-than.d.ts","types":"is-greater-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-greater-than@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"gc-victor","email":"gc.victor@gmail.com"},"dist":{"integrity":"sha512-fdrNfjJ9KxffFumTrieiMQEXiTCiWuq7Y4/M2FOCo+gjD/eUlA4L3bjQitxslmw++iU/hXT+jz28cfwIqpWnUw==","shasum":"b6f7c5d0452f4de5c9400a5cf99d4e9343040196","tarball":"https://registry.npmjs.org/@alidatorjs/is-greater-than/-/is-greater-than-1.0.0.tgz","fileCount":12,"unpackedSize":3893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcHvLCRA9TVsSAnZWagAA7scQAIREfkzxg5jBlwhMQZO5\nmsw6jwpKApgavEE9uJ2hSryz19mDMgJdU5QLJV1215JzX4ce9qdqg4oVpqwE\nxBlxNxGNvmEAkgolUYMaHbMHQePNrJPNB2DqTw1iU0BCjIpriQnOdzLHd80j\neYhz+vIxG4EzMvGZqalTsW7Z+XYAH40ZjMYo4uFp15nuDorvBdBaH2Ej+WIJ\nJLGdfamm+qvtukaLrt47TQSefVAO4sb91UpZ3zg1PR7uTPThSUtHIvE6SEpw\nshP27VdJDkMPJO5CWkHZK1+Fqxbl/AMM1HjxBX/gD9k1DBy1jvUYuOyKIukm\n6RThiQGLR3HWnNH1LRMDcERIJ2hDr8Qq74eY9Oca2GqP3djtH2BP90kR0unW\nQrfTtXykh2SDqj1/wI2Kv2Dc7mSyuq0xbFt+fgqpboRhnlUdsqjy/JvYZ46m\n1ip9FNERgfJXZO9Y2dpiuKuDaPsXF0P2fyK+v2tf40lyO7FTizeEm9AAHPnz\n6cvZLXh68jbqfn/9st3VA8G7qICF9zom6OIA6zARb75V42njBXYp5JPYddmu\nKEq5PXV96NQEaxzAUJIfhai1fS1c9NE7bVIks9ot8y6vqO1oCaBtzA4YLZuR\niV9I4J/s6Iq0qb11Yb3g9907gkCDhgV9fdSFWWIOUKxpMPjAo/P/kEKbxZR0\nz+iB\r\n=WMrA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUYTk0nZwCEZi1x3S0y4LkSjHGxuhQ/ycLrFczMOi3OAiBjGiThcQgzr7RC9GYzUAo8yyA995U++4jSgU4/tLcpxg=="}]},"maintainers":[{"name":"gc-victor","email":"gc.victor@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-greater-than_1.0.0_1534098378771_0.3444682501842815"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-12T18:26:18.731Z","1.0.0":"2018-08-12T18:26:18.851Z","modified":"2022-04-04T12:59:08.244Z"},"maintainers":[{"name":"gc-victor","email":"gc.victor@gmail.com"}],"description":"Tiny function to validate if a value is greater than other","keywords":["alidator","validator","validation","javascript","library"],"repository":{"type":"git","url":"https://github.com/gc-victor/alidatorjs/tree/master/packages/is-greater-than"},"author":{"name":"Víctor García"},"license":"MIT","readme":"# is-greater-than\n\nTiny function, compatible with Alidator.js, to validate if a value is greater than other.\n\n## Install\n\nYou can use npm or yarn to install it.\n\n`$ npm install --save @alidatorjs/is-greater-than`\n\n`$ yarn add @alidatorjs/is-greater-than`\n\nThen with a module bundler like rollup or webpack, use as you would anything else:\n\n```\n// using ES6 modules\nimport { isGreaterThan } from '@alidatorjs/is-greater-than'\n\n// using CommonJS modules\nvar { isGreaterThan } = require('@alidatorjs/is-greater-than')\n```\n\n## Usage\n\nIs as easy as define an array with the validations.\n\n```\nimport { validator } from '@alidatorjs/validator';\nimport { isGreaterThan } from '@alidatorjs/is-greater-than';\n\nconst isValid = validator([\n    isGreaterThan(1, 0),\n    isGreaterThan(2, 1),\n    isGreaterThan(3, 2),\n]).every; // true\n\nconst errors = validator([\n    [isGreaterThan(1, 0), () => 'Error 1'],\n    [isGreaterThan(1, 2), () => 'Error 2'],\n    [isGreaterThan(3, 2), () => 'Error 3'],\n]).errors; // ['Error 2']\n```\n\n## License\n\n[MIT License]((https://github.com/gc-victor/alidatorjs/blob/master/LICENSE.md))\n","readmeFilename":"README.md"}