{"_id":"unicode-properties","_rev":"3551623","name":"unicode-properties","description":"Provides fast access to unicode character properties","dist-tags":{"latest":"1.4.1"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"time":{"modified":"2024-09-19T02:43:33.000Z","created":"2015-04-04T02:19:48.054Z","1.4.1":"2022-06-19T02:50:39.657Z","1.4.0":"2022-06-18T23:35:17.843Z","1.3.1":"2019-11-17T23:15:25.197Z","1.3.0":"2019-11-17T20:05:11.169Z","1.2.2":"2019-06-17T04:21:04.654Z","1.2.1":"2019-06-17T04:12:17.449Z","1.2.0":"2019-06-17T02:35:26.379Z","1.1.0":"2015-07-28T04:57:15.308Z","1.0.0":"2015-04-04T02:19:48.054Z"},"users":{},"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"versions":{"1.4.1":{"name":"unicode-properties","version":"1.4.1","description":"Provides fast access to unicode character properties","source":"index.js","type":"module","main":"./dist/main.cjs","module":"./dist/module.mjs","exports":{"require":"./dist/main.cjs","import":"./dist/module.mjs"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^2.0.0"},"devDependencies":{"codepoints":"^1.3.0","mocha":"^10.0.0","parcel":"^2.6.1"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && parcel build","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"6cc2e62ba83258584bd54bc15034afce3fb7de8e","_id":"unicode-properties@1.4.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"96a9cffb7e619a0dc7368c28da27e05fc8f9be5f","size":30825,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.4.1.tgz"},"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.4.1_1655607039503_0.33034183474423173"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-19T02:50:48.579Z","publish_time":1655607039657,"_cnpm_publish_time":1655607039657},"1.4.0":{"name":"unicode-properties","version":"1.4.0","description":"Provides fast access to unicode character properties","source":"index.js","type":"module","main":"./dist/main.cjs","module":"./dist/module.mjs","exports":{"require":"./dist.main.cjs","import":"./dist/module.mjs"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^2.0.0"},"devDependencies":{"codepoints":"^1.3.0","mocha":"^10.0.0","parcel":"^2.6.1"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && parcel build","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"bc9fd7094828c9dcd1b72c5acfdfcf4f54a447c7","_id":"unicode-properties@1.4.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"38d621f489eb39975d3d9351b74a834acfa034e1","size":30829,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.4.0.tgz"},"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.4.0_1655595317659_0.6161380769110592"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-18T23:35:26.563Z","publish_time":1655595317843,"_cnpm_publish_time":1655595317843},"1.3.1":{"name":"unicode-properties","version":"1.3.1","description":"Provides fast access to unicode character properties","main":"./unicode-properties.cjs.js","module":"./unicode-properties.es.js","browser":{"./unicode-properties.es.js":"./unicode-properties.browser.es.js","./unicode-properties.cjs.js":"./unicode-properties.browser.cjs.js"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^2.0.0"},"devDependencies":{"@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","codepoints":"^1.3.0","mocha":"^5.2.0","rollup":"^1.5.0","rollup-plugin-babel":"^4.0.1","rollup-plugin-json":"^4.0.0"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && rollup -c","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"a7df933c4fe5ddca2cb9829a5634e6fe9f1ac529","_id":"unicode-properties@1.3.1","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"cc642b6314bde2c691d65dd94cece09ed84f1282","size":28243,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.3.1.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.3.1_1574032525100_0.16381699281109574"},"_hasShrinkwrap":false,"publish_time":1574032525197,"_cnpm_publish_time":1574032525197,"_cnpmcore_publish_time":"2021-12-16T22:38:57.313Z"},"1.3.0":{"name":"unicode-properties","version":"1.3.0","description":"Provides fast access to unicode character properties","main":"./unicode-properties.cjs.js","module":"./unicode-properties.es.js","browser":{"./unicode-properties.es.js":"./unicode-properties.browser.es.js","./unicode-properties.cjs.js":"./unicode-properties.browser.cjs.js"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^1.0.0"},"devDependencies":{"@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","codepoints":"^1.3.0","mocha":"^5.2.0","rollup":"^1.5.0","rollup-plugin-babel":"^4.0.1","rollup-plugin-json":"^4.0.0"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && rollup -c","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"9a6bc47f7af1e71bac66d71d85c693d38ef91be3","_id":"unicode-properties@1.3.0","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"shasum":"c392ddf1c045c54b7515544783fce96cf5e432b0","size":28237,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.3.0.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.3.0_1574021110984_0.4403944203190213"},"_hasShrinkwrap":false,"publish_time":1574021111169,"_cnpm_publish_time":1574021111169,"_cnpmcore_publish_time":"2021-12-16T22:38:57.522Z"},"1.2.2":{"name":"unicode-properties","version":"1.2.2","description":"Provides fast access to unicode character properties","main":"./unicode-properties.cjs.js","module":"./unicode-properties.es.js","browser":{"./unicode-properties.es.js":"./unicode-properties.browser.es.js","./unicode-properties.cjs.js":"./unicode-properties.browser.cjs.js"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^1.0.0"},"devDependencies":{"@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","codepoints":"^1.2.1","mocha":"^5.2.0","rollup":"^1.5.0","rollup-plugin-babel":"^4.0.1","rollup-plugin-json":"^4.0.0"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && rollup -c","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"7df4249add7c86e6dab8b61011fabdd7890a8229","_id":"unicode-properties@1.2.2","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"shasum":"8ea79db656166f9c2eca157b0fd06c415dcf5b01","size":26367,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.2.2.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.2.2_1560745264511_0.9785962961818069"},"_hasShrinkwrap":false,"publish_time":1560745264654,"_cnpm_publish_time":1560745264654,"_cnpmcore_publish_time":"2021-12-16T22:38:57.823Z"},"1.2.1":{"name":"unicode-properties","version":"1.2.1","description":"Provides fast access to unicode character properties","main":"./dist/unicode-properties.cjs.js","module":"./unicode-properties.es.js","browser":{"./unicode-properties.es.js":"./unicode-properties.browser.es.js","./unicode-properties.cjs.js":"./unicode-properties.browser.cjs.js"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^1.0.0"},"devDependencies":{"@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","codepoints":"^1.2.1","mocha":"^5.2.0","rollup":"^1.5.0","rollup-plugin-babel":"^4.0.1","rollup-plugin-json":"^4.0.0"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && rollup -c","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"5826541918760d8a3221e83b1d82af6c8ac93bed","_id":"unicode-properties@1.2.1","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"shasum":"59160c9a41966f4cdd18187207a346ecc9ecac85","size":26366,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.2.1.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.2.1_1560744737306_0.8563492856649626"},"_hasShrinkwrap":false,"publish_time":1560744737449,"_cnpm_publish_time":1560744737449,"_cnpmcore_publish_time":"2021-12-16T22:38:58.085Z"},"1.2.0":{"name":"unicode-properties","version":"1.2.0","description":"Provides fast access to unicode character properties","main":"./dist/unicode-properties.cjs.js","module":"./unicode-properties.es.js","browser":{"./unicode-properties.es.js":"./unicode-properties.browser.es.js","./unicode-properties.cjs.js":"./unicode-properties.browser.cjs.js"},"directories":{"test":"test"},"dependencies":{"base64-js":"^1.3.0","unicode-trie":"^1.0.0"},"devDependencies":{"@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","codepoints":"^1.2.1","mocha":"^5.2.0","rollup":"^1.5.0","rollup-plugin-babel":"^4.0.1","rollup-plugin-json":"^4.0.0"},"scripts":{"test":"npm run build && mocha","build":"node ./generate.js && rollup -c","prepublish":"npm run build"},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"0306931b3f8be9db19cf39923719e8f044d75d1f","_id":"unicode-properties@1.2.0","_nodeVersion":"12.0.0","_npmVersion":"6.9.0","dist":{"shasum":"f64833b79808617b494ff2536f6267cad8e7b7fc","size":1935,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.2.0.tgz"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_1.2.0_1560738926258_0.8706033884934528"},"_hasShrinkwrap":false,"publish_time":1560738926379,"_cnpm_publish_time":1560738926379,"_cnpmcore_publish_time":"2021-12-16T22:38:58.314Z"},"1.1.0":{"name":"unicode-properties","version":"1.1.0","description":"Provides fast access to unicode character properties","directories":{"test":"test"},"dependencies":{"brfs":"^1.4.0","unicode-trie":"^0.3.0"},"devDependencies":{"codepoints":"^1.2.0","coffee-script":"^1.9.1","mocha":"^2.2.1"},"scripts":{"test":"mocha","prepublish":"coffee generate.coffee && coffee -cb index.coffee","postpublish":"rm -f index.js"},"browserify":{"transform":["brfs"]},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"3f3a2bb7a6ced662a48b18ff33870990194a72c8","_id":"unicode-properties@1.1.0","_shasum":"7a96eef49f75682ea69d2315eec9ac43ffdf00c1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"7a96eef49f75682ea69d2315eec9ac43ffdf00c1","size":15662,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.1.0.tgz"},"publish_time":1438059435308,"_hasShrinkwrap":false,"_cnpm_publish_time":1438059435308,"_cnpmcore_publish_time":"2021-12-16T22:38:58.514Z"},"1.0.0":{"name":"unicode-properties","version":"1.0.0","description":"Provides fast access to unicode character properties","directories":{"test":"test"},"dependencies":{"brfs":"^1.4.0","unicode-trie":"^0.3.0"},"devDependencies":{"codepoints":"^1.0.0","coffee-script":"^1.9.1","mocha":"^2.2.1"},"scripts":{"test":"mocha","prepublish":"coffee generate.coffee && coffee -cb index.coffee","postpublish":"rm -f index.js"},"browserify":{"transform":["brfs"]},"repository":{"type":"git","url":"git://github.com/devongovett/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Devon Govett","email":"devongovett@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"homepage":"https://github.com/devongovett/unicode-properties","gitHead":"925047ab854dc6e9f53dcf96e6f6900e9d7b3145","_id":"unicode-properties@1.0.0","_shasum":"c57e5e7d3021b0ec20621245229dde95591b4455","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"devongovett","email":"devongovett@gmail.com"},"maintainers":[{"name":"devongovett","email":"devongovett@gmail.com"}],"dist":{"shasum":"c57e5e7d3021b0ec20621245229dde95591b4455","size":15124,"noattachment":false,"key":"/unicode-properties/-/unicode-properties-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-properties/download/unicode-properties-1.0.0.tgz"},"publish_time":1428113988054,"_hasShrinkwrap":false,"_cnpm_publish_time":1428113988054,"_cnpmcore_publish_time":"2021-12-16T22:38:58.740Z"}},"readme":"# unicode-properties\n\nProvides fast access to unicode character properties. Uses [unicode-trie](https://github.com/devongovett/unicode-trie) to compress the \nproperties for all code points into just 9.5KB. Currently, unicode-properties supports Unicode version 12.\n\n## Usage\n\n    npm install unicode-properties\n\n```javascript\nvar unicode = require('unicode-properties');\n\nunicode.getCategory('2'.charCodeAt()) //=> 'Nd'\nunicode.getNumericValue('2'.charCodeAt()) //=> 2\n```\n\n## API\n\n### getCategory(codePoint)\n\nReturns the unicode [general category](http://www.fileformat.info/info/unicode/category/index.htm) for the given code point.\n\n### getScript(codePoint)\n\nReturns the [script](http://unicode.org/standard/supported.html) for the given code point.\n\n### getCombiningClass(codePoint)\n\nReturns the [canonical combining class](http://unicode.org/glossary/#combining_class) for the given code point.\n\n### getEastAsianWidth(codePoint)\n\nReturns the [East Asian width](http://www.unicode.org/reports/tr11/tr11-28.html) for the given code point.\n\n### getNumericValue(codePoint)\n\nReturns the numeric value for the given code point, or null if there is no numeric value for that code point.\n\n### isAlphabetic(codePoint)\n\nReturns whether the code point is an alphabetic character.\n\n### isDigit(codePoint)\n\nReturns whether the code point is a digit.\n\n### isPunctuation(codePoint)\n\nReturns whether the code point is a punctuation character.\n\n### isLowerCase(codePoint)\n\nReturns whether the code point is lower case.\n\n### isUpperCase(codePoint)\n\nReturns whether the code point is upper case.\n\n### isTitleCase(codePoint)\n\nReturns whether the code point is title case.\n\n### isWhiteSpace(codePoint)\n\nReturns whether the code point is whitespace: specifically, whether the category is one of Zs, Zl, or Zp.\n\n### isBaseForm(codePoint)\n\nReturns whether the code point is a base form. A code point of base form does not graphically combine with preceding\ncharacters.\n\n### isMark(codePoint)\n\nReturns whether the code point is a mark character (e.g. accent).\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/devongovett/unicode-properties","bugs":{"url":"https://github.com/devongovett/unicode-properties/issues"},"license":"MIT"}