| 1 |
{ |
| 2 |
"_id": "unicode-match-property-ecmascript", |
| 3 |
"_rev": "5-0d4292a9a58537f37566c7f1728b8e0b", |
| 4 |
"name": "unicode-match-property-ecmascript", |
| 5 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.0.4" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "unicode-match-property-ecmascript", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 14 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 15 |
"main": "index.js", |
| 16 |
"engines": { |
| 17 |
"node": ">=4" |
| 18 |
}, |
| 19 |
"files": [ |
| 20 |
"LICENSE-MIT.txt", |
| 21 |
"index.js" |
| 22 |
], |
| 23 |
"keywords": [ |
| 24 |
"unicode", |
| 25 |
"unicode properties", |
| 26 |
"unicode property aliases" |
| 27 |
], |
| 28 |
"license": "MIT", |
| 29 |
"author": { |
| 30 |
"name": "Mathias Bynens", |
| 31 |
"url": "https://mathiasbynens.be/" |
| 32 |
}, |
| 33 |
"repository": { |
| 34 |
"type": "git", |
| 35 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 36 |
}, |
| 37 |
"bugs": { |
| 38 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 39 |
}, |
| 40 |
"dependencies": { |
| 41 |
"unicode-canonical-property-names": "^2.0.2", |
| 42 |
"unicode-property-aliases-ecmascript": "^1.0.1" |
| 43 |
}, |
| 44 |
"devDependencies": { |
| 45 |
"ava": "*" |
| 46 |
}, |
| 47 |
"scripts": { |
| 48 |
"test": "ava ./tests" |
| 49 |
}, |
| 50 |
"gitHead": "b6245796e041b9d0ec8c4cb3cbef14a4aec4db69", |
| 51 |
"_id": "[email protected]", |
| 52 |
"_shasum": "160ca31067f7c537b4b555fd32e0301fcb2607f4", |
| 53 |
"_from": ".", |
| 54 |
"_npmVersion": "3.10.8", |
| 55 |
"_nodeVersion": "6.9.1", |
| 56 |
"_npmUser": { |
| 57 |
"name": "mathias", |
| 58 |
"email": "[email protected]" |
| 59 |
}, |
| 60 |
"maintainers": [ |
| 61 |
{ |
| 62 |
"name": "mathias", |
| 63 |
"email": "[email protected]" |
| 64 |
} |
| 65 |
], |
| 66 |
"dist": { |
| 67 |
"shasum": "160ca31067f7c537b4b555fd32e0301fcb2607f4", |
| 68 |
"tarball": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.0.tgz" |
| 69 |
}, |
| 70 |
"_npmOperationalInternal": { |
| 71 |
"host": "packages-12-west.internal.npmjs.com", |
| 72 |
"tmp": "tmp/unicode-match-property-ecmascript-1.0.0.tgz_1492261516050_0.678085901774466" |
| 73 |
}, |
| 74 |
"directories": {} |
| 75 |
}, |
| 76 |
"1.0.1": { |
| 77 |
"name": "unicode-match-property-ecmascript", |
| 78 |
"version": "1.0.1", |
| 79 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 80 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 81 |
"main": "index.js", |
| 82 |
"engines": { |
| 83 |
"node": ">=4" |
| 84 |
}, |
| 85 |
"files": [ |
| 86 |
"LICENSE-MIT.txt", |
| 87 |
"index.js" |
| 88 |
], |
| 89 |
"keywords": [ |
| 90 |
"unicode", |
| 91 |
"unicode properties", |
| 92 |
"unicode property aliases" |
| 93 |
], |
| 94 |
"license": "MIT", |
| 95 |
"author": { |
| 96 |
"name": "Mathias Bynens", |
| 97 |
"url": "https://mathiasbynens.be/" |
| 98 |
}, |
| 99 |
"repository": { |
| 100 |
"type": "git", |
| 101 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 102 |
}, |
| 103 |
"bugs": { |
| 104 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 105 |
}, |
| 106 |
"dependencies": { |
| 107 |
"unicode-canonical-property-names-ecmascript": "^1.0.0", |
| 108 |
"unicode-property-aliases-ecmascript": "^1.0.1" |
| 109 |
}, |
| 110 |
"devDependencies": { |
| 111 |
"ava": "*" |
| 112 |
}, |
| 113 |
"scripts": { |
| 114 |
"test": "ava ./tests" |
| 115 |
}, |
| 116 |
"gitHead": "bc7869315df889fe2ce1d4c591b866242964bb61", |
| 117 |
"_id": "[email protected]", |
| 118 |
"_shasum": "f380567fb895cc649828bea3a524fa34f4feb9da", |
| 119 |
"_from": ".", |
| 120 |
"_npmVersion": "3.10.8", |
| 121 |
"_nodeVersion": "6.9.1", |
| 122 |
"_npmUser": { |
| 123 |
"name": "mathias", |
| 124 |
"email": "[email protected]" |
| 125 |
}, |
| 126 |
"maintainers": [ |
| 127 |
{ |
| 128 |
"name": "mathias", |
| 129 |
"email": "[email protected]" |
| 130 |
} |
| 131 |
], |
| 132 |
"dist": { |
| 133 |
"shasum": "f380567fb895cc649828bea3a524fa34f4feb9da", |
| 134 |
"tarball": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.1.tgz" |
| 135 |
}, |
| 136 |
"_npmOperationalInternal": { |
| 137 |
"host": "packages-18-east.internal.npmjs.com", |
| 138 |
"tmp": "tmp/unicode-match-property-ecmascript-1.0.1.tgz_1492261853207_0.37630514497868717" |
| 139 |
}, |
| 140 |
"directories": {} |
| 141 |
}, |
| 142 |
"1.0.2": { |
| 143 |
"name": "unicode-match-property-ecmascript", |
| 144 |
"version": "1.0.2", |
| 145 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 146 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 147 |
"main": "index.js", |
| 148 |
"engines": { |
| 149 |
"node": ">=4" |
| 150 |
}, |
| 151 |
"files": [ |
| 152 |
"LICENSE-MIT.txt", |
| 153 |
"index.js" |
| 154 |
], |
| 155 |
"keywords": [ |
| 156 |
"unicode", |
| 157 |
"unicode properties", |
| 158 |
"unicode property aliases" |
| 159 |
], |
| 160 |
"license": "MIT", |
| 161 |
"author": { |
| 162 |
"name": "Mathias Bynens", |
| 163 |
"url": "https://mathiasbynens.be/" |
| 164 |
}, |
| 165 |
"repository": { |
| 166 |
"type": "git", |
| 167 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 168 |
}, |
| 169 |
"bugs": { |
| 170 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 171 |
}, |
| 172 |
"dependencies": { |
| 173 |
"unicode-canonical-property-names-ecmascript": "^1.0.1", |
| 174 |
"unicode-property-aliases-ecmascript": "^1.0.3" |
| 175 |
}, |
| 176 |
"devDependencies": { |
| 177 |
"ava": "*" |
| 178 |
}, |
| 179 |
"scripts": { |
| 180 |
"test": "ava ./tests" |
| 181 |
}, |
| 182 |
"gitHead": "e6ff67e4fddca419ab1dda2ac1425755948bedb1", |
| 183 |
"_id": "[email protected]", |
| 184 |
"_npmVersion": "5.0.3", |
| 185 |
"_nodeVersion": "8.0.0", |
| 186 |
"_npmUser": { |
| 187 |
"name": "mathias", |
| 188 |
"email": "[email protected]" |
| 189 |
}, |
| 190 |
"maintainers": [ |
| 191 |
{ |
| 192 |
"name": "mathias", |
| 193 |
"email": "[email protected]" |
| 194 |
} |
| 195 |
], |
| 196 |
"dist": { |
| 197 |
"integrity": "sha512-1jUYUJTBqPjcSd5fzO5u7Q0QlFMgGZWyN8DgQL1VkvhLn3Ai4gAyzIB9o9D03PMJJ2SFoDyE7x8aVl3whPjuZg==", |
| 198 |
"shasum": "92e57a5bf6c4b6bb401c4ce797880fde8ed12820", |
| 199 |
"tarball": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.2.tgz" |
| 200 |
}, |
| 201 |
"_npmOperationalInternal": { |
| 202 |
"host": "s3://npm-registry-packages", |
| 203 |
"tmp": "tmp/unicode-match-property-ecmascript-1.0.2.tgz_1497978143644_0.038126759231090546" |
| 204 |
}, |
| 205 |
"directories": {} |
| 206 |
}, |
| 207 |
"1.0.3": { |
| 208 |
"name": "unicode-match-property-ecmascript", |
| 209 |
"version": "1.0.3", |
| 210 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 211 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 212 |
"main": "index.js", |
| 213 |
"engines": { |
| 214 |
"node": ">=4" |
| 215 |
}, |
| 216 |
"files": [ |
| 217 |
"LICENSE-MIT.txt", |
| 218 |
"index.js" |
| 219 |
], |
| 220 |
"keywords": [ |
| 221 |
"unicode", |
| 222 |
"unicode properties", |
| 223 |
"unicode property aliases" |
| 224 |
], |
| 225 |
"license": "MIT", |
| 226 |
"author": { |
| 227 |
"name": "Mathias Bynens", |
| 228 |
"url": "https://mathiasbynens.be/" |
| 229 |
}, |
| 230 |
"repository": { |
| 231 |
"type": "git", |
| 232 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 233 |
}, |
| 234 |
"bugs": { |
| 235 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 236 |
}, |
| 237 |
"dependencies": { |
| 238 |
"unicode-canonical-property-names-ecmascript": "^1.0.2", |
| 239 |
"unicode-property-aliases-ecmascript": "^1.0.3" |
| 240 |
}, |
| 241 |
"devDependencies": { |
| 242 |
"ava": "*" |
| 243 |
}, |
| 244 |
"scripts": { |
| 245 |
"test": "ava ./tests" |
| 246 |
}, |
| 247 |
"gitHead": "9694e6dffdaa6cb189ef912a3e9bd44aad1cf745", |
| 248 |
"_id": "[email protected]", |
| 249 |
"_npmVersion": "5.3.0", |
| 250 |
"_nodeVersion": "8.1.2", |
| 251 |
"_npmUser": { |
| 252 |
"name": "mathias", |
| 253 |
"email": "[email protected]" |
| 254 |
}, |
| 255 |
"dist": { |
| 256 |
"integrity": "sha512-nFcaBFcr08UQNF15ZgI5ISh3yUnQm7SJRRxwYrL5VYX46pS+6Q7TCTv4zbK+j6/l7rQt0mMiTL2zpmeygny6rA==", |
| 257 |
"shasum": "db9b1cb4ffc67e0c5583780b1b59370e4cbe97b9", |
| 258 |
"tarball": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.3.tgz" |
| 259 |
}, |
| 260 |
"maintainers": [ |
| 261 |
{ |
| 262 |
"name": "mathias", |
| 263 |
"email": "[email protected]" |
| 264 |
} |
| 265 |
], |
| 266 |
"_npmOperationalInternal": { |
| 267 |
"host": "s3://npm-registry-packages", |
| 268 |
"tmp": "tmp/unicode-match-property-ecmascript-1.0.3.tgz_1502964942368_0.4754543693270534" |
| 269 |
}, |
| 270 |
"directories": {} |
| 271 |
}, |
| 272 |
"1.0.4": { |
| 273 |
"name": "unicode-match-property-ecmascript", |
| 274 |
"version": "1.0.4", |
| 275 |
"description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", |
| 276 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 277 |
"main": "index.js", |
| 278 |
"engines": { |
| 279 |
"node": ">=4" |
| 280 |
}, |
| 281 |
"files": [ |
| 282 |
"LICENSE-MIT.txt", |
| 283 |
"index.js" |
| 284 |
], |
| 285 |
"keywords": [ |
| 286 |
"unicode", |
| 287 |
"unicode properties", |
| 288 |
"unicode property aliases" |
| 289 |
], |
| 290 |
"license": "MIT", |
| 291 |
"author": { |
| 292 |
"name": "Mathias Bynens", |
| 293 |
"url": "https://mathiasbynens.be/" |
| 294 |
}, |
| 295 |
"repository": { |
| 296 |
"type": "git", |
| 297 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 298 |
}, |
| 299 |
"bugs": { |
| 300 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 301 |
}, |
| 302 |
"dependencies": { |
| 303 |
"unicode-canonical-property-names-ecmascript": "^1.0.4", |
| 304 |
"unicode-property-aliases-ecmascript": "^1.0.4" |
| 305 |
}, |
| 306 |
"devDependencies": { |
| 307 |
"ava": "*" |
| 308 |
}, |
| 309 |
"scripts": { |
| 310 |
"test": "ava ./tests" |
| 311 |
}, |
| 312 |
"gitHead": "297bcffae3d154e0691b995e2a3ea28f449eab51", |
| 313 |
"_id": "[email protected]", |
| 314 |
"_npmVersion": "5.6.0", |
| 315 |
"_nodeVersion": "8.11.1", |
| 316 |
"_npmUser": { |
| 317 |
"name": "mathias", |
| 318 |
"email": "[email protected]" |
| 319 |
}, |
| 320 |
"dist": { |
| 321 |
"integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", |
| 322 |
"shasum": "8ed2a32569961bce9227d09cd3ffbb8fed5f020c", |
| 323 |
"tarball": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", |
| 324 |
"fileCount": 4, |
| 325 |
"unpackedSize": 4407, |
| 326 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbGS7aCRA9TVsSAnZWagAA/UoQAJ2YtVTo92TbI6uWXG4N\nGvNXizlbSzLVMxm9L/Mdj2BrhsPdEUueZbshZ1X16lOKgG5+uSTYU79lHWRo\npiyFrjhlkAjZNcRSBySXQMLoUtaeIWd0KpFozSYBIQb0RFAesUrlGPDdT/je\njG7FdCKL9Pa5yvgILmB9ckt1Dt1DTBm/Orv6YRe3BTxE1BG7C3+PFfDviz6P\nbXei6fMf5jPrXjVi+K3Me/p1chM+DNzcOqRSgMRnQG+QPbGBOBvXUTmoOC2j\nzCzSyq7BiidgsEmjFXWY31sAo9/kFcxa/JFBsw9+Kq7X/Bn5TdMEXXdJjLkN\nmPuGRdED6WrWvThJeGgC1DHKkZc1STisg2PQSlhdpLFeccd1OS24y6DzZ3In\nmDK+QSmMQXAjN26QbcbchXXCOrkPAhN0EP8GUPEHtY2VGKrEmYZ2jytTDnCv\n8hIded19NaN7yHnONZ+RqVcVxJddTq4bjPBflBLVaonbol0ysHNpOvnCWoUw\n1F/Q/HnDvJbrIRGTaW0rpruhGAkv5tXcoqqJ+6NTwjEdV+OTRqZK4xQUtD+j\nuL74rMjzFayuR9ya73RyEww1Yk4SzOY/EjeF2/86LqkK3JLmkTO0ekLKeA0b\nbWqI32uF40jKMsasNAoPBx/P9AYCTAXji8E1L+KZGpJZWQgenX2GFzT9SN72\nmUeR\r\n=DWwy\r\n-----END PGP SIGNATURE-----\r\n" |
| 327 |
}, |
| 328 |
"maintainers": [ |
| 329 |
{ |
| 330 |
"name": "mathias", |
| 331 |
"email": "[email protected]" |
| 332 |
} |
| 333 |
], |
| 334 |
"directories": {}, |
| 335 |
"_npmOperationalInternal": { |
| 336 |
"host": "s3://npm-registry-packages", |
| 337 |
"tmp": "tmp/unicode-match-property-ecmascript_1.0.4_1528377049980_0.5348814037750922" |
| 338 |
} |
| 339 |
} |
| 340 |
}, |
| 341 |
"readme": "# unicode-match-property-ecmascript [](https://travis-ci.org/mathiasbynens/unicode-match-property-ecmascript)\n\n_unicode-match-property-ecmascript_ 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-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-match-property-ecmascript\n```\n\nThen, `require` it:\n\n```js\nconst matchProperty = require('unicode-match-property-ecmascript');\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| [](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\n_unicode-match-property-ecmascript_ is available under the [MIT](https://mths.be/mit) license.\n", |
| 342 |
"maintainers": [ |
| 343 |
{ |
| 344 |
"name": "mathias", |
| 345 |
"email": "[email protected]" |
| 346 |
} |
| 347 |
], |
| 348 |
"time": { |
| 349 |
"modified": "2018-06-07T13:10:53.151Z", |
| 350 |
"created": "2017-04-15T13:05:18.196Z", |
| 351 |
"1.0.0": "2017-04-15T13:05:18.196Z", |
| 352 |
"1.0.1": "2017-04-15T13:10:53.882Z", |
| 353 |
"1.0.2": "2017-06-20T17:02:24.659Z", |
| 354 |
"1.0.3": "2017-08-17T10:15:43.185Z", |
| 355 |
"1.0.4": "2018-06-07T13:10:50.096Z" |
| 356 |
}, |
| 357 |
"homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", |
| 358 |
"keywords": [ |
| 359 |
"unicode", |
| 360 |
"unicode properties", |
| 361 |
"unicode property aliases" |
| 362 |
], |
| 363 |
"repository": { |
| 364 |
"type": "git", |
| 365 |
"url": "git+https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" |
| 366 |
}, |
| 367 |
"author": { |
| 368 |
"name": "Mathias Bynens", |
| 369 |
"url": "https://mathiasbynens.be/" |
| 370 |
}, |
| 371 |
"bugs": { |
| 372 |
"url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues" |
| 373 |
}, |
| 374 |
"license": "MIT", |
| 375 |
"readmeFilename": "README.md", |
| 376 |
"_attachments": {} |
| 377 |
} |