{"_id":"unicode-categories","_rev":"28-4d89e3ae6e7ae7d8d650ae9915092285","name":"unicode-categories","description":"Unicode categories regExps","dist-tags":{"latest":"0.9.1"},"versions":{"0.5.0":{"author":{"name":"Paul Miller","email":"paulmillr@me.com","url":"http://paulmillr.com/"},"name":"unicode-categories","description":"ECMAscript unicode categories","version":"0.5.0","homepage":"https://github.com/paulmillr/unicode-categories","repository":{"type":"git","url":"git://github.com/paulmillr/unicode-categories.git"},"main":"unicode-categories","engines":{"node":">=0.4.0"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"paulmillr","email":"paulmillr@me.com"},"_id":"unicode-categories@0.5.0","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"dad06f10cb26f8fb47e0fc84af2824a3a71a3bcb","tarball":"https://registry.npmjs.org/unicode-categories/-/unicode-categories-0.5.0.tgz","integrity":"sha512-UtU9CR/2Q0BccRwvUON2W739/j0MXIRk+EINNW/Fc4G2UzTvatTdePOnDmSeKzKbfeKPw1v3AE0uHN886B81Ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD/9aZ2+qrdeTQjSbiCCfTUvtACUZUlW56GgBHnPgKQQIgKpxNvdJLp0G+r5SI1oojmsqyViTjCHTtSX8ptqyWzmU="}]},"maintainers":[{"name":"paulmillr","email":"paulmillr@me.com"}],"directories":{}},"0.9.1":{"author":{"name":"Paul Miller","url":"http://paulmillr.com/"},"name":"unicode-categories","description":"Unicode categories regExps","version":"0.9.1","homepage":"https://github.com/paulmillr/unicode-categories","repository":{"type":"git","url":"git://github.com/paulmillr/unicode-categories.git"},"engines":{"node":">=0.4.0"},"dependencies":{},"devDependencies":{},"readme":"# Unicode categories\nUnicode categories regExps.\n\n## Installation\n\n```bash\nnpm install unicode-categories\n```\n\n## Usage\n\n```javascript\nvar unicode = require('unicode-categories');\n// Tests if text is a valid unicode upper case letter.\nvar isValidUpperCase = unicode.Lu.test;\n// Tests if text is a valid ecmascript identifier.\nvar isValidIdentifier = unicode.ECMA.identifier.test;\n```\n\n## Documentation\nLibrary contains several unicode category regexps. Here's list of them:\n\n(short name, long name: description)\n\n- `Lu`: upper case letter.\n- `Ll`: lower case letter.\n- `Lt`: title case letter.\n- `Lm`: modifier letter.\n- `Lo`: other letter.\n- `Mn`: non-spacing mark.\n- `Mc`: space mark.\n- `Nl`: number letter.\n- `Nd`: decimal (e.g. 0-9 etc).\n- `Pc`: punctuation connector.\n\nAlso, unicode-categories gives you a list of ECMAscript idenfitiers:\n\n- `ECMA.start` - letter, that identifier starts with. Contains letters from\ncategories (Lu, Ll, Lt, Lm, Lo, Nl). Also it can be `$` and `_`.\n- `ECMA.part` - all `ECMA.start` letters plus letters from categories Mn, Mc, Nd, Pc.\n- `ECMA.idenfitier` - combination of previous two regexps.\n\nFor details, see [ECMAscript spec](http://es5.github.com/#x7.6).\n\n## License\n(The MIT License)\n\nCopyright (c) 2011 Paul Miller (http://paulmillr.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","readmeFilename":"README.md","_id":"unicode-categories@0.9.1","dist":{"shasum":"ead892c07ebc108f2dcea0d4326ffb850969c9c8","tarball":"https://registry.npmjs.org/unicode-categories/-/unicode-categories-0.9.1.tgz","integrity":"sha512-61OCyQc95VLUzCzFwfNs61DicwfJ/Mv8+GiYkag2khY/42ujZnsjg7qMMMwOIcmFZT/YBD1YdXrf+gQZUoAgiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH77iB9ktXo86tVebqmzvP0u/j2qNIQ7AjQJK5+WOXvVAiEAtFxkH0HRlZzZHkU1J0IMrjryzXFerncnWBmwkcC/4sQ="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"directories":{}}},"readme":"# Unicode categories\nA list of unicode categories.\nIt could be used implement ECMAscript lexer etc.\n\n## Installation\n\n```bash\nnpm install unicode-categories\n```\n\n## Usage\n\n```javascript\nvar unicode = require('unicode-categories');\n// Tests if text is a valid ECMAscript identifier.\nvar isValidIdentifier = function(text) {\n  return unicode.letter.test(text);\n};\n```\n\n## Documentation\nLibrary contains several unicode category regexps. Here's list of them:\n\n(short name, long name: description)\n\n- `Lu`, `upperCaseLetter`: upper case letter.\n- `Ll`, `lowerCaseLetter`: lower case letter.\n- `Lt`, `titleCaseLetter`: title case letter.\n- `Lm`, `modifierLetter`: modifier letter.\n- `Lo`, `otherLetter`: other letter.\n- `Mn`, `nonSpacingMark`: non-spacing mark.\n- `Mc`, `spaceMark`: space mark.\n- `Nl`, `number`: number.\n- `Nd`, `decimal`: decimal.\n- `Pc`, `punctuationConnector`: punctuation connector.\n- `letter`: combines `upperCaseLetter`, `lowerCaseLetter`, `titleCaseLetter`,\n`modifierLetter`, `otherLetter` and `number`. `letter` is a valid js identifier.\n\n## License\n(The MIT License)\n\nCopyright (c) 2011 Paul Miller (http://paulmillr.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"name":"paulmillr","email":"paul@paulmillr.com"}],"time":{"modified":"2022-06-28T04:25:04.230Z","created":"2011-12-04T06:31:59.026Z","0.5.0":"2011-12-04T06:32:01.219Z","1.0.0":"2011-12-04T07:00:37.278Z","1.0.1":"2011-12-04T15:50:05.939Z","1.0.2":"2011-12-04T16:01:23.158Z","0.9.0":"2011-12-04T17:29:49.948Z","0.9.1":"2013-02-03T16:44:11.494Z"},"author":{"name":"Paul Miller","url":"http://paulmillr.com/"},"repository":{"type":"git","url":"git://github.com/paulmillr/unicode-categories.git"},"users":{"davidtimms":true}}