{"name":"unicode-loose-match","version":"2.0.6","description":"A JavaScript implementation of Unicode loose matching.","homepage":"https://github.com/mathiasbynens/unicode-loose-match","engines":{"node":">=4"},"files":["LICENSE-MIT.txt","index.js","data/mappings.js"],"keywords":["unicode","loose matching"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-loose-match.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-loose-match/issues"},"devDependencies":{"ava":"*","jsesc":"^1.2.0","unicode-8.0.0":"^0.3.1","unicode-property-aliases":"^1.0.0","unicode-property-value-aliases":"^1.0.2"},"scripts":{"build":"node scripts/generate.js","test":"ava ./tests"},"gitHead":"70da27961572db44809685fd2cd939287e923704","_id":"unicode-loose-match@2.0.6","_shasum":"d440c7168fe8f716628d9a317919b72439a1afbe","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"d440c7168fe8f716628d9a317919b72439a1afbe","tarball":"http://registry-npm.ywwl.com/unicode-loose-match/download/unicode-loose-match-2.0.6.tgz","integrity":"sha512-83eQk31m0SWs84gESbSYygTbj++j8UgAla9ExZrJEmCFN552ky64o6yMpQFAGlSLZL2yvJ4xSexozKcyRHmm2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1atKmKqgapX1O2MhAN9FO5krVu8OCcPEdc2E72N31kAIhAMj3E2L/+KogD1JvceNqs/mLjzRudW9vdLYmlWQRNjD+"}],"size":13916,"noattachment":false,"key":"/unicode-loose-match/-/unicode-loose-match-2.0.6.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-loose-match-2.0.6.tgz_1464286758784_0.17057510721497238"},"directories":{},"readme":"# unicode-loose-match\n\nunicode-loose-match is a JavaScript implementation of [UAX44-LM3](http://unicode.org/reports/tr44/tr44-16.html#Matching_Symbolic), i.e. the loose matching algorithm for symbolic values as defined in the Unicode Standard.\n\nIt’s based on Unicode data and recognizes [property aliases](https://github.com/mathiasbynens/unicode-property-aliases) and [property value aliases](https://github.com/mathiasbynens/unicode-property-value-aliases).\n\n## Installation\n\nTo use _unicode-loose-match_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-loose-match\n```\n\nThen, `require` it:\n\n```js\nconst matchLoosely = require('unicode-loose-match');\n```\n\n## API\n\nThis module exports a single function named `matchLoosely`.\n\n### `matchLoosely(propertyInput, [valueInput])`\n\nThis function takes two strings `propertyInput` and `valueInput` and applies loose matching on the property-value pair within the list of all Unicode property values. `valueInput` is optional.\n\nThe return value is an object containing containing the canonical property name `property` and the canonical property value name `value`. If an unknown `propertyInput` is given, an exception is thrown.\n\n```js\n// Find the canonical property name and property value name:\nmatchLoosely('blk', 'Arabic_PF_B')\n// → { 'property': 'Block', 'value': 'Arabic_Presentation_Forms_B' }\n\n// Find the canonical property name:\nmatchLoosely('compex')\n// → { 'property': 'Full_Composition_Exclusion' }\n```\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\n_unicode-loose-match_ is available under the [MIT](https://mths.be/mit) license.\n","publish_time":1464286761210,"_cnpm_publish_time":1464286761210,"dist-tags":{"latest":"3.0.0"}}