{"name":"unicode-match-property","version":"0.1.0","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","homepage":"https://github.com/mathiasbynens/unicode-match-property","main":"index.js","engines":{"node":">=4"},"files":["LICENSE-MIT.txt","index.js","data/canonical-names.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-match-property.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property/issues"},"dependencies":{"unicode-property-aliases":"^1.1.0"},"devDependencies":{"ava":"*","jsesc":"^2.2.0","unicode-9.0.0":"^0.0.1"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"24166f6146ba01a85322a2f0de7d3f6f67e3b6b0","_id":"unicode-match-property@0.1.0","_shasum":"011a97307608dbd88ef05def5383c4ed3cfda6d1","_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":"011a97307608dbd88ef05def5383c4ed3cfda6d1","tarball":"http://registry-npm.ywwl.com/unicode-match-property/download/unicode-match-property-0.1.0.tgz","integrity":"sha512-73AmqtL/gFK9hxPrIFnBLtqZnhd5saOKUJKbAJ+SnryL3JGYksymx1HGQZjNux3qkaH1M5CJXkwfbKkOhoyaCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA87ZAgOVDjmMAviulJR0jWt/7MoVT5TdpK/pNwqeg6bAiA+i2oeM06VQc0avMGIufgFHJ5SOlmj5E3S8wWUcXNA2w=="}],"size":2249,"noattachment":false,"key":"/unicode-match-property/-/unicode-match-property-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/unicode-match-property-0.1.0.tgz_1465410698090_0.3726859597954899"},"directories":{},"readme":"# unicode-match-property [![Build status](https://travis-ci.org/mathiasbynens/unicode-match-property.svg?branch=master)](https://travis-ci.org/mathiasbynens/unicode-match-property)\n\n_unicode-match-property_ matches a given Unicode property or [property alias](https://github.com/mathiasbynens/unicode-property-aliases-ecmascript) to its canonical property name without applying [loose matching](https://github.com/mathiasbynens/unicode-loose-match) per the algorithm used for [RegExp Unicode property escapes in ECMAScript](https://github.com/tc39/proposal-regexp-unicode-property-escapes). Consider it a strict alternative to loose matching.\n\n## Installation\n\nTo use _unicode-match-property_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-match-property\n```\n\nThen, `require` it:\n\n```js\nconst matchProperty = require('unicode-match-property');\n```\n\n## API\n\nThis module exports a single function named `matchProperty`.\n\n### `matchProperty(value)`\n\nThis function takes a string `value` and attempts to match it to a canonical Unicode property name. If there’s a match, it returns the canonical property name. Otherwise, it throws an exception.\n\n```js\n// Find the canonical property name:\nmatchProperty('sc')\n// → 'Script'\n\nmatchProperty('Script')\n// → 'Script'\n\nmatchProperty('script') // Note: incorrect casing.\n// → throws\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-match-property_ is available under the [MIT](https://mths.be/mit) license.\n","publish_time":1465410700143,"_cnpm_publish_time":1465410700143,"dist-tags":{"latest":"0.2.2"}}