{"name":"unicode-loose-match","version":"2.2.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.2.0","unicode-9.0.0":"^0.7.0","unicode-property-aliases":"^1.1.0","unicode-property-value-aliases":"^1.2.1"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"9c25b3f74e3af8cf885e1cc9dfa9dd371f7acd8a","_id":"unicode-loose-match@2.2.0","_shasum":"75fc660d0c6fd748e013ef9bf35f1d97a8717723","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"75fc660d0c6fd748e013ef9bf35f1d97a8717723","tarball":"http://registry-npm.ywwl.com/unicode-loose-match/download/unicode-loose-match-2.2.0.tgz","integrity":"sha512-o5WffSpR9DkkjZYVZJzpdXhPDDc+t1L0wWPXQHePQwwpIeBo5j29Pa+HwMWLQvv/DU9u+a27Sd/zLeNmfRtJ3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+uqT0uMrB4+lM5//r7z/eK4fQHibCe0op+MBowQQjJgIhAIcNI20fbbB+B3R7j/a9iveH89EMViJqcgCQOxLtTDs2"}],"size":13321,"noattachment":false,"key":"/unicode-loose-match/-/unicode-loose-match-2.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-loose-match-2.2.0.tgz_1466545310247_0.15478909318335354"},"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":1466545312555,"_cnpm_publish_time":1466545312555,"dist-tags":{"latest":"3.0.0"}}