{"_id":"@pdf-lib/unicode-properties","_rev":"2-96a45c47fcdb128c7720a12880ae8194","name":"@pdf-lib/unicode-properties","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.0":{"name":"@pdf-lib/unicode-properties","version":"0.0.0","description":"Provides fast access to unicode character properties","main":"lib/index.js","unpkg":"dist/unicode-properties.min.js","module":"es/index.js","scripts":{"test":"NODE_ENV=test mocha","make":"node Makefile.js","clean":"node Makefile.js clean"},"dependencies":{"base64-arraybuffer":"^0.1.5","pako":"^1.0.6","unicode-trie":"^0.3.0"},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.2","@babel/node":"^7.2.2","@babel/preset-env":"^7.2.0","@babel/register":"^7.0.0","codepoints":"^1.2.0","mocha":"^5.2.0","rollup":"^0.68.0","rollup-plugin-babel":"^4.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-json":"^3.1.0","rollup-plugin-local-resolve":"^1.0.7","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-terser":"^3.0.0","shelljs":"^0.8.3"},"repository":{"type":"git","url":"git://github.com/Hopding/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Andrew Dillon","email":"andrew.dillon.j@gmail.com"},"contributors":[{"name":"Devon Govett","email":"devongovett@gmail.com","url":"http://badassjs.com/"}],"bugs":{"url":"https://github.com/Hopding/unicode-properties/issues"},"license":"MIT","homepage":"https://github.com/Hopding/unicode-properties","licenseText":"Copyright 2018\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","_id":"@pdf-lib/unicode-properties@0.0.0","dist":{"shasum":"ca11ca6c046c08b7fd61ef82bc22f65e1d515cfc","integrity":"sha512-FuISPyVk0SSDExBQv/Jd6UwiVJA6qMXt1LwdLGu+bKdMIaPZhZAs0ZuHa4DPL4h4a+IvVyCDtxKU3veDtdgfKQ==","tarball":"https://registry.npmjs.org/@pdf-lib/unicode-properties/-/unicode-properties-0.0.0.tgz","fileCount":15,"unpackedSize":374013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGrt+CRA9TVsSAnZWagAA3TsP/jEeA28gIII/OjUXx/Ru\n33ca2sEkVoyHAXKsNx6kS2k8GcJ/7Qe0dM4KmjlpzJarc83azotF+0Aeah8x\n8esW8rxugbXvRWosxzgvEa+yhz7n0aDJCNwvmjMGJr+Hz0pL4m460mUu+khL\na/BK3M3Y50nKIvrPf01Q/6D7E3QmxCcwjq68TCV0q1z5gYhNTz0KniMPy0cI\n6spTWKkSJZyAgM7e5oEke2+G4hDB04ZiKCwtCeQpETw18cIKYn3VB1bcIisO\n7z3cMuf7qGxTeAJLS+7dn52f88c8t/EcwLBRYqVnue+1h8F/PskjBzqYYi7V\nS98xL5os0GtVXB+uN0qSqsOWkk8EBXS8loiVL2A6gKdQcnFifitasXgm1VPx\nC9gUUg+o4CpIJwX2QGI7StESBGQFCcUiA+BsulmQQTnXeK0xTqlG4B5t1YNC\nv3/MEumdMkQsTCMieDixzdf9e+Bp36tiMreJe1BJZUuwE35ILesP/j3UVNWr\nJMJldzGeauj5Dsszvh/vIPJIQfEHFN7JuR2Oky0eg+gR9hIP3YAgIZ4xcQUg\nx18/UjkBqgAWPakYkKxko7IL3sMqxGjHkJTs+pHSDGiXDvpZcdmuipph8WHH\nJqYXMNxa4w+kC2om6qQIiK5beneG3sICym6fndkZJaMy/66BG2vsVXkd+GX1\nzKEG\r\n=NwqJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg9DCuCAG00FvbjAEzaw68gkWjqaG5kT9uGWarY1tJLwIhAJ38ituaZAt2T6MiyJ5RwTP46/UEx96ZnWaxEoK7QOfc"}]},"maintainers":[{"name":"hopding","email":"andrew.dillon.j@gmail.com"}],"_npmUser":{"name":"hopding","email":"andrew.dillon.j@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_0.0.0_1545255805529_0.15382733597242493"},"_hasShrinkwrap":false},"0.0.1":{"name":"@pdf-lib/unicode-properties","version":"0.0.1","description":"Provides fast access to unicode character properties","main":"lib/index.js","unpkg":"dist/unicode-properties.min.js","module":"es/index.js","scripts":{"test":"NODE_ENV=test mocha","make":"node Makefile.js","clean":"node Makefile.js clean"},"dependencies":{"base64-arraybuffer":"^0.1.5","pako":"^1.0.6","unicode-trie":"^0.3.0"},"devDependencies":{"@babel/cli":"^7.2.0","@babel/core":"^7.2.2","@babel/node":"^7.2.2","@babel/preset-env":"^7.2.0","@babel/register":"^7.0.0","codepoints":"^1.2.0","mocha":"^5.2.0","rollup":"^0.68.0","rollup-plugin-babel":"^4.1.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-json":"^3.1.0","rollup-plugin-local-resolve":"^1.0.7","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-terser":"^3.0.0","shelljs":"^0.8.3"},"repository":{"type":"git","url":"git://github.com/Hopding/unicode-properties.git"},"keywords":["unicode","metadata","character","codepoint"],"author":{"name":"Andrew Dillon","email":"andrew.dillon.j@gmail.com"},"contributors":[{"name":"Devon Govett","email":"devongovett@gmail.com","url":"http://badassjs.com/"}],"bugs":{"url":"https://github.com/Hopding/unicode-properties/issues"},"license":"MIT","homepage":"https://github.com/Hopding/unicode-properties","licenseText":"Copyright 2018\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","_id":"@pdf-lib/unicode-properties@0.0.1","dist":{"shasum":"7f4a6a5ad7f9ec889449dcc51317217230b2d01f","integrity":"sha512-zPhtCnQ4YuR2CX0h7zqBN7dPe/XN2dL71qi7Xh8JQON2IibogLdezwlEn1AIzs3m/+kjeKxXsQClN/D4U2i5NA==","tarball":"https://registry.npmjs.org/@pdf-lib/unicode-properties/-/unicode-properties-0.0.1.tgz","fileCount":15,"unpackedSize":371909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG4jWCRA9TVsSAnZWagAAnY4P/3W1PCQe4+ZiR+CoJxOt\nWQXmFm4SSQJ5VVdgtRZAmuPYyESiPq25HQg5DoKttjUHC8C8glHbi/8fc2qL\nL8jOCHSliTvDhdRCxbQPhmbUdMnY6p5uSl4kUraKXiJMPh33vyRmkqDmPm8f\n+sZiDPnDnhFINm2xglOq1mIahXqpDFD56HMIEeCTvgu6nnYiyVsDs5uuTejo\nTjgZgXxvIlpWwbZsNQkGgNCc+CvrbV6xl2HgGtl014r/HRUkw/ubdSmfGoje\n19R47Jw0afL+zqboKelYADrdwOGtrYxvE9Hzv7+VhgjONp14OBiMBg1hhy03\n8BfMz/8j+migu7vsppwj8OftXtz8jX/niwijs5pYRmbqSWnMiEue84ex9UtZ\nxJjhxckEM7InbA8Jj0eEGsgCGTe8ifxvGY0n46iyu5gnMQF+h2o3YeBhVFW+\n8FXMXgZpdk+llxcWmUuryjGuMPInXN79/wLBj9dEi10bg9j+AGW5N/HY4iWC\n9d69BypVfXbDSIBZIFVlL92a55apBR8YelyZAJGMo2lM9hu87OVAXno8Q7ki\ngcr8+sKQizr6Hvu7d7bZERIM+SBr1+y28WzGuXwClUDowM9KmNXU/3LV4tNL\nbU1Em4JoNOgeV6UiiaoE0PiGkCs8eYmFFAHBymvv6CBA3FYg3yVi3/IfVvLY\nV2bk\r\n=SdjA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9FSynJTM7sbFpNqhtDM2eqrm1Yb+tkzfHbr8wHUs14gIhALAN62X8iP8pi/D3loLYEhW/4BlIPAyt6DTM6nO0O3lk"}]},"maintainers":[{"name":"hopding","email":"andrew.dillon.j@gmail.com"}],"_npmUser":{"name":"hopding","email":"andrew.dillon.j@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-properties_0.0.1_1545308374168_0.16093767505284973"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-19T21:43:25.359Z","0.0.0":"2018-12-19T21:43:25.668Z","modified":"2022-04-06T13:40:24.271Z","0.0.1":"2018-12-20T12:19:34.377Z"},"maintainers":[{"name":"hopding","email":"andrew.dillon.j@gmail.com"}],"description":"Provides fast access to unicode character properties","homepage":"https://github.com/Hopding/unicode-properties","keywords":["unicode","metadata","character","codepoint"],"repository":{"type":"git","url":"git://github.com/Hopding/unicode-properties.git"},"contributors":[{"name":"Devon Govett","email":"devongovett@gmail.com","url":"http://badassjs.com/"}],"author":{"name":"Andrew Dillon","email":"andrew.dillon.j@gmail.com"},"bugs":{"url":"https://github.com/Hopding/unicode-properties/issues"},"license":"MIT","readme":"**NOTE:** All credit for this code belongs to the developers of https://github.com/devongovett/unicode-properties\n# Purpose of this Fork\nThis fork was created for use in https://github.com/Hopding/pdf-lib.\n\nThe original repository serialized and loaded the trie data using a binary file. This worked fine in Node, because `fs.readFileSync` was being called to load the serialized data into a `Buffer` object. In order to support use in the browser, Browserify and [`brfs`](https://github.com/browserify/brfs) were used to inline the binary data in the `index.js` file, and thereby remove the call to `fs.readFileSync`.\n\nThis works fine if you are in a Node environment, or are using Browserify to bundle your code for use in the browser. But it doesn't work so well if you aren't doing either of those things. E.g. I was writing an app built with `create-react-app`, and the binary data was not being inlined for this dependency.\n\nI resolved this by simply serializing the trie data to a JSON file, which allows it to be loaded into the `index.js` file without using Browserify. Of course, this means that the trie data is not stored as efficiently, but that is not a concern for me.\n\n# 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 12KB.\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","readmeFilename":"README.md"}