summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/is-alphabetical
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/is-alphabetical')
-rw-r--r--tools/node_modules/eslint/node_modules/is-alphabetical/LICENSE22
-rw-r--r--tools/node_modules/eslint/node_modules/is-alphabetical/index.js13
-rw-r--r--tools/node_modules/eslint/node_modules/is-alphabetical/package.json103
-rw-r--r--tools/node_modules/eslint/node_modules/is-alphabetical/readme.md57
4 files changed, 195 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/is-alphabetical/LICENSE b/tools/node_modules/eslint/node_modules/is-alphabetical/LICENSE
new file mode 100644
index 0000000000..8d8660d36e
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-alphabetical/LICENSE
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
+
+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.
diff --git a/tools/node_modules/eslint/node_modules/is-alphabetical/index.js b/tools/node_modules/eslint/node_modules/is-alphabetical/index.js
new file mode 100644
index 0000000000..3b27588720
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-alphabetical/index.js
@@ -0,0 +1,13 @@
+'use strict';
+
+module.exports = alphabetical;
+
+/* Check if the given character code, or the character
+ * code at the first character, is alphabetical. */
+function alphabetical(character) {
+ var code = typeof character === 'string' ?
+ character.charCodeAt(0) : character;
+
+ return (code >= 97 && code <= 122) || /* a-z */
+ (code >= 65 && code <= 90); /* A-Z */
+}
diff --git a/tools/node_modules/eslint/node_modules/is-alphabetical/package.json b/tools/node_modules/eslint/node_modules/is-alphabetical/package.json
new file mode 100644
index 0000000000..2b7c5f293f
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-alphabetical/package.json
@@ -0,0 +1,103 @@
+{
+ "_from": "is-alphabetical@^1.0.0",
+ "_id": "is-alphabetical@1.0.1",
+ "_inBundle": false,
+ "_integrity": "sha1-x3B5zJHU76x3W+EDS/LSQ/lebwg=",
+ "_location": "/is-alphabetical",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "is-alphabetical@^1.0.0",
+ "name": "is-alphabetical",
+ "escapedName": "is-alphabetical",
+ "rawSpec": "^1.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
+ },
+ "_requiredBy": [
+ "/is-alphanumerical",
+ "/remark-parse"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.1.tgz",
+ "_shasum": "c77079cc91d4efac775be1034bf2d243f95e6f08",
+ "_spec": "is-alphabetical@^1.0.0",
+ "_where": "/Users/cjihrig/iojs/node/tools/eslint-tmp/node_modules/eslint/node_modules/remark-parse",
+ "author": {
+ "name": "Titus Wormer",
+ "email": "tituswormer@gmail.com",
+ "url": "http://wooorm.com"
+ },
+ "bugs": {
+ "url": "https://github.com/wooorm/is-alphabetical/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Titus Wormer",
+ "email": "tituswormer@gmail.com",
+ "url": "http://wooorm.com"
+ }
+ ],
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Check if a character is alphabetical",
+ "devDependencies": {
+ "browserify": "^14.1.0",
+ "esmangle": "^1.0.1",
+ "nyc": "^11.0.0",
+ "remark-cli": "^3.0.0",
+ "remark-preset-wooorm": "^3.0.0",
+ "tape": "^4.0.0",
+ "xo": "^0.18.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/wooorm/is-alphabetical#readme",
+ "keywords": [
+ "string",
+ "character",
+ "char",
+ "code",
+ "alphabetical"
+ ],
+ "license": "MIT",
+ "name": "is-alphabetical",
+ "nyc": {
+ "check-coverage": true,
+ "lines": 100,
+ "functions": 100,
+ "branches": 100
+ },
+ "remarkConfig": {
+ "plugins": [
+ "preset-wooorm"
+ ]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/wooorm/is-alphabetical.git"
+ },
+ "scripts": {
+ "build": "npm run build-md && npm run build-bundle && npm run build-mangle",
+ "build-bundle": "browserify index.js --bare -s isAlphabetical > is-alphabetical.js",
+ "build-mangle": "esmangle < is-alphabetical.js > is-alphabetical.min.js",
+ "build-md": "remark . -qfo",
+ "lint": "xo",
+ "test": "npm run build && npm run lint && npm run test-coverage",
+ "test-api": "node test",
+ "test-coverage": "nyc --reporter lcov tape test.js"
+ },
+ "version": "1.0.1",
+ "xo": {
+ "space": true,
+ "esnext": false,
+ "rules": {
+ "capitalized-comments": "off"
+ },
+ "ignores": [
+ "is-alphabetical.js"
+ ]
+ }
+}
diff --git a/tools/node_modules/eslint/node_modules/is-alphabetical/readme.md b/tools/node_modules/eslint/node_modules/is-alphabetical/readme.md
new file mode 100644
index 0000000000..372b188378
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/is-alphabetical/readme.md
@@ -0,0 +1,57 @@
+# is-alphabetical [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
+
+Check if a character is alphabetical.
+
+## Installation
+
+[npm][]:
+
+```bash
+npm install is-alphabetical
+```
+
+## Usage
+
+```javascript
+var alphabetical = require('is-alphabetical');
+
+alphabetical('a'); // true
+alphabetical('B'); // true
+alphabetical('0'); // false
+alphabetical('💩'); // false
+```
+
+## API
+
+### `alphabetical(character|code)`
+
+Check whether the given character code (`number`), or the character
+code at the first position (`string`), is alphabetical.
+
+## Related
+
+* [`is-decimal`](https://github.com/wooorm/is-decimal)
+* [`is-hexadecimal`](https://github.com/wooorm/is-hexadecimal)
+* [`is-alphanumerical`](https://github.com/wooorm/is-alphanumerical)
+* [`is-whitespace-character`](https://github.com/wooorm/is-whitespace-character)
+* [`is-word-character`](https://github.com/wooorm/is-word-character)
+
+## License
+
+[MIT][license] © [Titus Wormer][author]
+
+<!-- Definitions -->
+
+[travis-badge]: https://img.shields.io/travis/wooorm/is-alphabetical.svg
+
+[travis]: https://travis-ci.org/wooorm/is-alphabetical
+
+[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/is-alphabetical.svg
+
+[codecov]: https://codecov.io/github/wooorm/is-alphabetical
+
+[npm]: https://docs.npmjs.com/cli/install
+
+[license]: LICENSE
+
+[author]: http://wooorm.com