{"name":"unicode-loose-match","version":"2.1.0","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.1.0","unicode-8.0.0":"^0.6.0","unicode-property-aliases":"^1.1.0","unicode-property-value-aliases":"^1.1.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"517dd755a294943410ab928adb83909f4c828d7c","_id":"unicode-loose-match@2.1.0","_shasum":"a04be512f9d07470a78d94ed4bd66c96bf30b619","_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":"a04be512f9d07470a78d94ed4bd66c96bf30b619","tarball":"http://registry-npm.ywwl.com/unicode-loose-match/download/unicode-loose-match-2.1.0.tgz","integrity":"sha512-kolLWxobjfDTRBPZEZcKF+gQhKqv0wCOT14dDsqThTHhwlw2N7v1eqqekA0bz+T3ouWaBDudwEORdeef3B9RSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ3f6vBmV8Z7FwQJbsY8pR5knCMR4dXIjla/a0bGYCNQIgawIEy4qE85fi4YZ/CHX7DwyEEcIxAyNxdTpyjeTsviE="}],"size":13362,"noattachment":false,"key":"/unicode-loose-match/-/unicode-loose-match-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-loose-match-2.1.0.tgz_1464947111931_0.8283993189688772"},"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":1464947114101,"_cnpm_publish_time":1464947114101,"dist-tags":{"latest":"3.0.0"}}