{"_id":"rich-param","_rev":"8-be6c1010620cd5c5ddcecf6a8f4c48c5","name":"rich-param","description":"An object with name and value which accepts pluggable methods as formatters or validators.","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"rich-param","version":"1.0.0","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^0.19.2"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"28cc21a5c7df82b3387d666f307f50335621119e","_id":"rich-param@1.0.0","_shasum":"3949fa0eba3d8cc0d281ad5ef3c98d00791bf885","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.6.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"3949fa0eba3d8cc0d281ad5ef3c98d00791bf885","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.0.tgz","integrity":"sha512-4o/wYTrUBRCR0cDibuzPwpBMCaGGYIsoY0MV/RMCEp4vA1EUiSSc196l77bF8TeuTfQWXAApbQ7ytK1rPLucuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4uYHM/bbMOQ5FN4b4iPjn72Gtbk8g34j8EyZ+GJmEhAIhAP8TU4RpEh/fL3rnSG02r8lDuH17JzyhjOI0YA2f/hvl"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rich-param-1.0.0.tgz_1473139975684_0.1568099451251328"}},"1.0.1":{"name":"rich-param","version":"1.0.1","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-promise":"^2.0.1","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^0.19.2"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"2ab74cded6b178afd81f9e268aed5e600d00d133","_id":"rich-param@1.0.1","_shasum":"3e306fd33a4f49b5e02f23539a3bbcd2e7a5c671","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.6.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"3e306fd33a4f49b5e02f23539a3bbcd2e7a5c671","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.1.tgz","integrity":"sha512-KKGmuzaLZXxUGMI0S2QBL9tPyytFWTiezNyt0NblkpHRlKhuAHt8WCVHOYFaCc+mude90TC3SChWUhwCjJlm8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPFX3HeuaDeaiBAAJNeXhrLY2S92/mZDENKAXglgRc6AiBXyXblGaPSIoyS4NMev2EN7AjzGA15gDDcKlXnMY9OuQ=="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rich-param-1.0.1.tgz_1473140632446_0.47130342037416995"}},"1.0.2":{"name":"rich-param","version":"1.0.2","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-promise":"^2.0.1","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^0.19.2"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"7ef9381788c7387502372286bc23a06595501d3d","_id":"rich-param@1.0.2","_shasum":"17b682f275b134ff2dc63ce562c194b15d55414e","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.6.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"17b682f275b134ff2dc63ce562c194b15d55414e","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.2.tgz","integrity":"sha512-TLCsWPrZMGYloVk8csu/ZF4EPO6H/cpcuJU6g1xg5SOQr5OXSxvqKfRP9wZuz6D+pFLxRe4vHL12d0suZXjmRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfwU65wif0hwt5Qh7b0U2tS5IoVFSTGjU611jErmyx4wIhANRwAxdB+J/yCW+9fMHSwk4mdNDLFoXyRuHUhEwskbvG"}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rich-param-1.0.2.tgz_1474916018727_0.7420002508442849"}},"1.0.3":{"name":"rich-param","version":"1.0.3","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^6.1.2","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-promise":"^2.0.1","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^0.19.2"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"cfaba0dbe5bae39d37ea97c9847d53f5dfaae795","_id":"rich-param@1.0.3","_shasum":"8c6c36378d9a9c8afadded7824a6a4cf7d47b83f","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.6.0","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"8c6c36378d9a9c8afadded7824a6a4cf7d47b83f","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.3.tgz","integrity":"sha512-upAtdLEwtoN+p5MqrGuQIjYWA9q5GyqUtap1fa2VWVRNvKUEM4COmPl/x5fo5QudMCLW9X5lEbj3+UoIYq/yiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFQtX2HZ/6ma1ZKIwL+aT/7nsZJiiChMszkAf7lpBEspAiEAz0SZdcAmNRnNhdH/mBbWE2id25GmsDSQV+CdRDMNqfw="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-param-1.0.3.tgz_1474960762655_0.10227203951217234"}},"1.0.4":{"name":"rich-param","version":"1.0.4","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^7.0.0","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^1.0.1"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"7f302e4e890e4837d45a26678a2e6c7091e5f0b4","_id":"rich-param@1.0.4","_shasum":"0a5f44357a867daf5e536529b0a5115e09e6aaa3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"0a5f44357a867daf5e536529b0a5115e09e6aaa3","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.4.tgz","integrity":"sha512-TGZ8B9JOM94TCKzEICsWK78NrzFitf7ZHT/KyDw1lDwmfuS4PQayHMGecfm+RvRSl5dM4pdXhrOxA2L4cHIhXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7ZxMvmIUEIKi4iCmIwNU6cNQbPVDB31oQXGzDkR9KZAiBfBn5SGx7ez69G7UqOr8xbMQ/eivF+E9NcBgyZ5QGPJQ=="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rich-param-1.0.4.tgz_1479529802582_0.5528074074536562"}},"1.0.5":{"name":"rich-param","version":"1.0.5","description":"An object with name and value which accepts pluggable methods as formatters or validators.","main":"dist/index.js","files":["bin/","dist/"],"scripts":{"clean":"rimraf dist","lint":"eslint src test","check":"npm run lint -s && dependency-check package.json --entry src","watch":"watch 'npm run build' src test","test":"babel-node test/index.js | tspec","prebuild":"npm run check -s && npm run clean -s","build":"babel --optional runtime src -d dist","postbuild":"npm run test -s","coverage":"nyc --reporter=lcov --reporter=text npm run test","coveralls":"npm run coverage -s && coveralls < coverage/lcov.info","postcoveralls":"rimraf ./coverage","prepublish":"npm run build -s","deploy":"git pull --rebase origin master && git push origin master","patch":"npm version patch && npm publish","minor":"npm version minor && npm publish","major":"npm version major && npm publish","postpublish":"git push origin master --follow-tags","toc":"doctoc --github --title \"# Changelog\" CHANGELOG.md"},"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"keywords":["parameter","param","validator","parser","formatter","validation"],"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"homepage":"https://github.com/diegohaz/rich-param#readme","devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^7.0.0","babel-preset-es2015":"^6.14.0","coveralls":"^2.11.12","dependency-check":"^2.6.0","doctoc":"^1.2.0","eslint":"^3.4.0","eslint-config-standard":"^6.0.0","eslint-plugin-promise":"^3.3.0","eslint-plugin-standard":"^2.0.0","nyc":"^8.1.0","rimraf":"^2.5.4","tap-spec":"^4.1.1","tape":"^4.6.0","watch":"^1.0.1"},"dependencies":{"lodash":"^4.15.0"},"gitHead":"593f59b0597697e47ea5d79793aa261effce6a63","_id":"rich-param@1.0.5","_shasum":"59872418fe0d0b2136e1bdbac0dede3569e0cbfa","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"diegohaz","email":"hazdiego@gmail.com"},"dist":{"shasum":"59872418fe0d0b2136e1bdbac0dede3569e0cbfa","tarball":"https://registry.npmjs.org/rich-param/-/rich-param-1.0.5.tgz","integrity":"sha512-3YlDrPVjF2LLTjvbv0Z1PMkPgSQXnauVXlErL0gBGfxbhoqtf2pfBlynFe8fZVrtTHmAcbSt7cZ0fRyEnIlvAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxIeCeLWvJ29+qUl2f2SYdmQbkexkOOa0jSe7RQfEnwgIgCrmmQ62+I2vrR6zmpp0UxEQEJ3klu6cSyFJgqV0baFo="}]},"maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-param-1.0.5.tgz_1479530753852_0.4273716155439615"}}},"readme":"# rich-param\n\n[![NPM version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Coveralls Status][coveralls-image]][coveralls-url]\n[![Dependency Status][depstat-image]][depstat-url]\n[![Downloads][download-badge]][npm-url]\n\n> An object with name and value which accepts pluggable methods as formatters or validators.\n\n## Install\n\n```sh\nnpm install rich-param\n```\n\n## Usage\n\n### Basic\n```js\nimport Param from 'rich-param'\n\n// new Param(name, value, options)\nconst param = new Param('firstName', 'Jessica', { uppercase: true })\n\nconsole.log(param.name) // firstName\nconsole.log(param.value()) // JESSICA\n```\n\n### Setting and getting value\n```js\nconsole.log(param.value('pRIsCila')) // PRISCILA\n```\n\n### Setting and getting options\nSee [List of default options](#list-of-default-options)\n```js\nconsole.log(param.option('uppercase')) // true\nconsole.log(param.option('uppercase', false)) // false\n\nconsole.log(param.value('prisciLa')) // prisciLa\n```\n\n### Formatting the value\n```js\nparam.option('format', (value, param) => `${param.name}: ${value}`)\n\nconsole.log(param.value('PRISCILA')) // firstName: PRISCILA\n```\n\n### Validating the value\n```js\nparam.option('validate', (value, param) => ({\n  valid: value === 'Jessica',\n  message: 'Jessica is the only valid name'\n}))\n\nparam.value('Jessica')\nconsole.log(param.validate()) // true\n\nparam.value('Priscila')\nconsole.log(param.validate()) // false\n\n// or get the error object\nparam.validate((err) => {\n  console.log(err)\n  /* {\n    valid: false,\n    name: 'validate',\n    param: 'firstName',\n    value: 'Priscila',\n    message: 'Jessica is the only valid name'\n  } */\n})\n```\n\n### Validating using the built-in validators\nSee [List of default options](#list-of-default-options)\n```js\nparam.option('required', true)\nparam.value('')\n\nconsole.log(param.validate()) // false\n\n// or get the error object\nparam.validate((err) => {\n  console.log(err)\n  /* {\n    valid: false,\n    name: 'required',\n    required: true,\n    param: 'firstName',\n    value: '',\n    message: 'firstName is required'\n  } */\n})\n```\n\n### Creating a custom formatter\n```js\nparam.formatter('shout', (shout, value, param) => {\n  if (shout && value) {\n    value = value.toUpperCase() + '!'\n  }\n  return value\n})\n\nconsole.log(param.value('Jessica')) // Jessica\n\nparam.option('shout', true)\n\nconsole.log(param.value('Jessica')) // JESSICA!\n```\n\n### Creating a custom validator\n```js\nparam.validator('mustBeAShout', (mustBeAShout, value, param) => ({\n  valid: !mustBeAShout || !value && value.toUpperCase() === value && value.indexOf('!') !== -1,\n  message: 'THE VALUE MUST BE A SHOUT!'\n}))\n\nparam.option('shout', false)\n\nconsole.log(param.value('Jessica')) // Jessica\nconsole.log(param.validate()) // true\n\nparam.option('mustBeAShout', true)\n\nconsole.log(param.validate()) // false\n\nparam.option('shout', true)\n\nconsole.log(param.value('Jessica')) // JESSICA!\nconsole.log(param.validate()) // true\n```\n\n## Reference\n\n### List of default options\n\nOption | Type | Default value | Description\n-------|------|---------------|-------------\ndefault | Mixed | | Default param value\nnormalize | Boolean | `false` | Formats `Hey, jÉssiCa!` to `hey jessica`\nlowercase | Boolean | `false` | Formats `HeLLo!` to `hello!`\nuppercase | Boolean | `false` | Formats `HeLLo!` to `HELLO!`\ntrim | Boolean | `true` | Formats `  HeLLo  ! ` to `HeLLo  !`\nrequired | Boolean | `false` | Invalidates empty values\nmin | Number | | Invalidates values lower than it\nmax | Number | | Invalidates values greater than it\nminlength | Number | | Invalidates values with length lower than it\nmaxlength | Number | | Invalidates values with length greater than it\nenum | Array | | Invalidates values which isn't in it\nmatch | RegExp | | Invalidates values which doesn't pass the RegExp\nmultiple | Boolean | `false` | Make the value an array\nseparator | String | `,` | String to be found in the value to split into an array (if multiple = true)\nformat | Function | `(value, param) => value` | Function to be called with `param.value()`\nvalidate | Function | `(value, param) => ({ valid: true })` | Function to be called with `param.validate()`\n\n\n## License\n\nMIT © [Diego Haz](http://github.com/diegohaz)\n\n[npm-url]: https://npmjs.org/package/rich-param\n[npm-image]: https://img.shields.io/npm/v/rich-param.svg?style=flat-square\n\n[travis-url]: https://travis-ci.org/diegohaz/rich-param\n[travis-image]: https://img.shields.io/travis/diegohaz/rich-param.svg?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/diegohaz/rich-param\n[coveralls-image]: https://img.shields.io/coveralls/diegohaz/rich-param.svg?style=flat-square\n\n[depstat-url]: https://david-dm.org/diegohaz/rich-param\n[depstat-image]: https://david-dm.org/diegohaz/rich-param.svg?style=flat-square\n\n[download-badge]: http://img.shields.io/npm/dm/rich-param.svg?style=flat-square\n","maintainers":[{"name":"diegohaz","email":"hazdiego@gmail.com"}],"time":{"modified":"2022-06-26T13:13:37.256Z","created":"2016-09-06T05:32:56.269Z","1.0.0":"2016-09-06T05:32:56.269Z","1.0.1":"2016-09-06T05:43:53.038Z","1.0.2":"2016-09-26T18:53:41.195Z","1.0.3":"2016-09-27T07:19:22.899Z","1.0.4":"2016-11-19T04:30:03.116Z","1.0.5":"2016-11-19T04:45:56.153Z"},"homepage":"https://github.com/diegohaz/rich-param#readme","keywords":["parameter","param","validator","parser","formatter","validation"],"repository":{"type":"git","url":"git+https://github.com/diegohaz/rich-param.git"},"author":{"name":"Diego Haz","email":"hazdiego@gmail.com"},"bugs":{"url":"https://github.com/diegohaz/rich-param/issues"},"license":"MIT","readmeFilename":"README.md"}