{"name":"unicode-loose-match","version":"2.2.1","description":"A JavaScript implementation of Unicode loose matching.","homepage":"https://github.com/mathiasbynens/unicode-loose-match","main":"index.js","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":"^2.5.1","unicode-10.0.0":"^0.7.4","unicode-property-aliases":"^1.1.1","unicode-property-value-aliases":"^3.0.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"8e51501feea46a19f7d29752685a939d6a214f49","_id":"unicode-loose-match@2.2.1","_npmVersion":"5.4.1","_nodeVersion":"8.2.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"dist":{"integrity":"sha512-39nHfHFSWf5iVa9qkAvU/YQfpdkhuJZHyjEvQHwkgJmD5TjyylrYu1nYg5MCBbx6rAiidx+P7l0YuqZaphC16A==","shasum":"b316a733f2c27aecee265a1bb02561c9bfbd3007","tarball":"http://registry-npm.ywwl.com/unicode-loose-match/download/unicode-loose-match-2.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRTsWTq09kDE8D+OR74FGkaHJg67IJFZk1MINgUPc55AIgHpPjUmawlo6QeTUlgvr/chnuOOdt1BSfj8VPpnnjNVI="}],"size":14197,"noattachment":false,"key":"/unicode-loose-match/-/unicode-loose-match-2.2.1.tgz"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-loose-match-2.2.1.tgz_1505061078428_0.8967905049212277"},"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":1505061079456,"_cnpm_publish_time":1505061079456,"dist-tags":{"latest":"3.0.0"}}