{"name":"unicode-loose-match","version":"2.0.2","description":"A JavaScript implementation of Unicode loose matching.","homepage":"https://github.com/mathiasbynens/unicode-loose-match","engines":{"node":">=6"},"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.2.0","unicode-property-aliases":"^1.0.0","unicode-property-value-aliases":"^1.0.1"},"scripts":{"build":"node scripts/generate.js","test":"ava ./tests"},"gitHead":"412aff1eb68a4d0114f52e0f128fa7990b53ba0c","_id":"unicode-loose-match@2.0.2","_shasum":"ad737c94bcfb3ada93822206f38f4d0e24a3cdfe","_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":"ad737c94bcfb3ada93822206f38f4d0e24a3cdfe","tarball":"http://registry-npm.ywwl.com/unicode-loose-match/download/unicode-loose-match-2.0.2.tgz","integrity":"sha512-cA8y7eHu7IYCco+zt9ZZc4YL3466mps7X54temCoeDc/jRrRxiyH9eDLEdLX2STnh8XkHnuVh0fj33/1YsYlmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHQlCXZgQYgy9XhJz5BpCafXcvn5YGPhmQMrXDL82G8QAiABjP0HT+XeaAtKZ7m42nYIh5mAmnvZ6v1zp33+dPj4Lg=="}],"size":14565,"noattachment":false,"key":"/unicode-loose-match/-/unicode-loose-match-2.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-loose-match-2.0.2.tgz_1464154541364_0.7601940294262022"},"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":1464154543668,"_cnpm_publish_time":1464154543668,"dist-tags":{"latest":"3.0.0"}}