{"_id":"percentage-regex","_rev":"5-c2764f8080e8b23431f6340ecfeac660","name":"percentage-regex","description":"Regex to match a percentage value","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"percentage-regex","version":"1.0.0","description":"Regex to match a percentage value","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arthurvr/percentage-regex.git"},"author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be","url":"arthurverschaeve.be"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["%","percentage","percent","digit","number","regex","regexp"],"devDependencies":{"mocha":"*"},"gitHead":"9ff0969e354eb121c88a05350b8d9a7b8c463e7f","bugs":{"url":"https://github.com/arthurvr/percentage-regex/issues"},"homepage":"https://github.com/arthurvr/percentage-regex#readme","_id":"percentage-regex@1.0.0","_shasum":"137d0708e57c92b6ab5533f8558e780bc5fac2ba","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"arthurvr","email":"contact@arthurverschaeve.be"}],"dist":{"shasum":"137d0708e57c92b6ab5533f8558e780bc5fac2ba","tarball":"https://registry.npmjs.org/percentage-regex/-/percentage-regex-1.0.0.tgz","integrity":"sha512-WeB3qUb5Nj29TOAcj6hvgeHkSKx44fL8S3cmv+hGnybf27f7FweW63v3+06zoqbrUlNcM0W6KWno3dOGWFHKYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaSMEPCxjzNLvuH4Uv+vdg69eZrB+OwWQ/AnNGi+zDmAiEAxrXBTII/V7b/uACJAgvRdjvmTMWfUotw3xI8LMprU0A="}]}},"2.0.0":{"name":"percentage-regex","version":"2.0.0","description":"Regex to match a percentage value","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arthurvr/percentage-regex.git"},"author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be","url":"arthurverschaeve.be"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["%","percentage","percent","digit","number","regex","regexp"],"devDependencies":{"mocha":"*"},"gitHead":"acdbfb5e8bfc01b74b06277055ef59133461df65","bugs":{"url":"https://github.com/arthurvr/percentage-regex/issues"},"homepage":"https://github.com/arthurvr/percentage-regex#readme","_id":"percentage-regex@2.0.0","_shasum":"24a30be3e9e96013e7954a864eb0384f9e6981e6","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"maintainers":[{"name":"arthurvr","email":"contact@arthurverschaeve.be"}],"dist":{"shasum":"24a30be3e9e96013e7954a864eb0384f9e6981e6","tarball":"https://registry.npmjs.org/percentage-regex/-/percentage-regex-2.0.0.tgz","integrity":"sha512-ZhlnNEKhIEtP8il7KjTwst665MfSSfbileqEqbnaFHYA8Tf+M/xpwEis701hccM5JitgKBzqAx3bjhnvQ23MZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDjoWotThQggHoGOFABaJiq8/8Eh1PORBk9sQm0OWyGBAiEAzJpNHwAfS9xlXcMlp7nuHCxHwkwTbbYU9F0yHPai5VU="}]}},"3.0.0":{"name":"percentage-regex","version":"3.0.0","description":"Regex to match a percentage value","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arthurvr/percentage-regex.git"},"author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be","url":"arthurverschaeve.be"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["%","percentage","percent","digit","number","regex","regexp"],"devDependencies":{"mocha":"*"},"gitHead":"60888ff3888e2079e7e069fa8a1e72f0d2a8b870","bugs":{"url":"https://github.com/arthurvr/percentage-regex/issues"},"homepage":"https://github.com/arthurvr/percentage-regex#readme","_id":"percentage-regex@3.0.0","_shasum":"50032100a2f08dd2e942853f17bceeee69a38d9c","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"arthurvr","email":"contact@arthurverschaeve.be"},"dist":{"shasum":"50032100a2f08dd2e942853f17bceeee69a38d9c","tarball":"https://registry.npmjs.org/percentage-regex/-/percentage-regex-3.0.0.tgz","integrity":"sha512-FU90n5bCLcsfQWxh4cdq+jJjkCJCCuYs6dvEk8kZ13syvgH0gM/8aRl9Rr4vVbaSt8SnOc5J6X3WrgnxoVESBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqX/yGXz3KzXqhlF0JbVqY0woUHb8GTHoaiFSjx8cr4AIhAOjtjYkoh9HEWeBdxR4rhar9hyC6IjXE+egEj/P4e5x/"}]},"maintainers":[{"name":"arthurvr","email":"contact@arthurverschaeve.be"}]}},"readme":"# percentage-regex [![Build Status](https://travis-ci.org/arthurvr/percentage-regex.svg?branch=master)](https://travis-ci.org/arthurvr/percentage-regex)\n\n> Regular expression to match percentage values\n\n\n## Install\n\n```\n$ npm install --save percentage-regex\n```\n\n\n## Usage\n\n```js\nvar percentageRegex = require('percentage-regex');\n\n'I am 99% sure that was a unicorn'.match(percentageRegex());\n//=> ['99%']\n\n'I had 83% for maths and 68% for French'.match(percentageRegex());\n//=> ['83%', '68%']\n\npercentageRegex({exact: true}).test('88%');\n//=> true\n```\n\n## API\n\n### percentageRegex(options)\n\nReturns a regex for matching percentage values.\n\n#### options.exact\n\nType: `boolean`  \nDefault: `false` *(Matches any percentage in a string)*  \n\nOnly match an exact string. Useful with `RegExp#test` to check if some string is a percentage.\n\n\n## License\n\nMIT © [Arthur Verschaeve](http://arthurverschaeve.be)\n","maintainers":[{"name":"arthurvr","email":"contact@arthurverschaeve.be"}],"time":{"modified":"2022-06-23T18:08:02.542Z","created":"2015-06-22T14:12:01.947Z","1.0.0":"2015-06-22T14:12:01.947Z","2.0.0":"2015-06-24T15:26:57.359Z","3.0.0":"2015-07-23T14:51:16.366Z"},"homepage":"https://github.com/arthurvr/percentage-regex#readme","keywords":["%","percentage","percent","digit","number","regex","regexp"],"repository":{"type":"git","url":"git+https://github.com/arthurvr/percentage-regex.git"},"author":{"name":"Arthur Verschaeve","email":"contact@arthurverschaeve.be","url":"arthurverschaeve.be"},"bugs":{"url":"https://github.com/arthurvr/percentage-regex/issues"},"license":"MIT","readmeFilename":"readme.md"}