full site update
This commit is contained in:
8
node_modules/unicode-properties/LICENSE
generated
vendored
Normal file
8
node_modules/unicode-properties/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Copyright 2018
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
150
node_modules/unicode-properties/dist/main.cjs
generated
vendored
Normal file
150
node_modules/unicode-properties/dist/main.cjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/unicode-properties/dist/main.cjs.map
generated
vendored
Normal file
1
node_modules/unicode-properties/dist/main.cjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
127
node_modules/unicode-properties/dist/module.mjs
generated
vendored
Normal file
127
node_modules/unicode-properties/dist/module.mjs
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/unicode-properties/dist/module.mjs.map
generated
vendored
Normal file
1
node_modules/unicode-properties/dist/module.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
49
node_modules/unicode-properties/package.json
generated
vendored
Normal file
49
node_modules/unicode-properties/package.json
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "unicode-properties",
|
||||
"version": "1.4.1",
|
||||
"description": "Provides fast access to unicode character properties",
|
||||
"source": "index.js",
|
||||
"type": "module",
|
||||
"main": "./dist/main.cjs",
|
||||
"module": "./dist/module.mjs",
|
||||
"exports": {
|
||||
"require": "./dist/main.cjs",
|
||||
"import": "./dist/module.mjs"
|
||||
},
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"dependencies": {
|
||||
"base64-js": "^1.3.0",
|
||||
"unicode-trie": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"codepoints": "^1.3.0",
|
||||
"mocha": "^10.0.0",
|
||||
"parcel": "^2.6.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run build && mocha",
|
||||
"build": "node ./generate.js && parcel build",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/devongovett/unicode-properties.git"
|
||||
},
|
||||
"keywords": [
|
||||
"unicode",
|
||||
"metadata",
|
||||
"character",
|
||||
"codepoint"
|
||||
],
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"author": "Devon Govett <devongovett@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/devongovett/unicode-properties/issues"
|
||||
},
|
||||
"homepage": "https://github.com/devongovett/unicode-properties"
|
||||
}
|
78
node_modules/unicode-properties/readme.md
generated
vendored
Normal file
78
node_modules/unicode-properties/readme.md
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
# unicode-properties
|
||||
|
||||
Provides fast access to unicode character properties. Uses [unicode-trie](https://github.com/devongovett/unicode-trie) to compress the
|
||||
properties for all code points into just 9.5KB. Currently, unicode-properties supports Unicode version 12.
|
||||
|
||||
## Usage
|
||||
|
||||
npm install unicode-properties
|
||||
|
||||
```javascript
|
||||
var unicode = require('unicode-properties');
|
||||
|
||||
unicode.getCategory('2'.charCodeAt()) //=> 'Nd'
|
||||
unicode.getNumericValue('2'.charCodeAt()) //=> 2
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### getCategory(codePoint)
|
||||
|
||||
Returns the unicode [general category](http://www.fileformat.info/info/unicode/category/index.htm) for the given code point.
|
||||
|
||||
### getScript(codePoint)
|
||||
|
||||
Returns the [script](http://unicode.org/standard/supported.html) for the given code point.
|
||||
|
||||
### getCombiningClass(codePoint)
|
||||
|
||||
Returns the [canonical combining class](http://unicode.org/glossary/#combining_class) for the given code point.
|
||||
|
||||
### getEastAsianWidth(codePoint)
|
||||
|
||||
Returns the [East Asian width](http://www.unicode.org/reports/tr11/tr11-28.html) for the given code point.
|
||||
|
||||
### getNumericValue(codePoint)
|
||||
|
||||
Returns the numeric value for the given code point, or null if there is no numeric value for that code point.
|
||||
|
||||
### isAlphabetic(codePoint)
|
||||
|
||||
Returns whether the code point is an alphabetic character.
|
||||
|
||||
### isDigit(codePoint)
|
||||
|
||||
Returns whether the code point is a digit.
|
||||
|
||||
### isPunctuation(codePoint)
|
||||
|
||||
Returns whether the code point is a punctuation character.
|
||||
|
||||
### isLowerCase(codePoint)
|
||||
|
||||
Returns whether the code point is lower case.
|
||||
|
||||
### isUpperCase(codePoint)
|
||||
|
||||
Returns whether the code point is upper case.
|
||||
|
||||
### isTitleCase(codePoint)
|
||||
|
||||
Returns whether the code point is title case.
|
||||
|
||||
### isWhiteSpace(codePoint)
|
||||
|
||||
Returns whether the code point is whitespace: specifically, whether the category is one of Zs, Zl, or Zp.
|
||||
|
||||
### isBaseForm(codePoint)
|
||||
|
||||
Returns whether the code point is a base form. A code point of base form does not graphically combine with preceding
|
||||
characters.
|
||||
|
||||
### isMark(codePoint)
|
||||
|
||||
Returns whether the code point is a mark character (e.g. accent).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
Reference in New Issue
Block a user