This commit is contained in:
14
node_modules/is-alphabetical/index.js
generated
vendored
Normal file
14
node_modules/is-alphabetical/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'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 */
|
||||
)
|
||||
}
|
||||
22
node_modules/is-alphabetical/license
generated
vendored
Normal file
22
node_modules/is-alphabetical/license
generated
vendored
Normal file
@@ -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.
|
||||
75
node_modules/is-alphabetical/package.json
generated
vendored
Normal file
75
node_modules/is-alphabetical/package.json
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "is-alphabetical",
|
||||
"version": "1.0.4",
|
||||
"description": "Check if a character is alphabetical",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"string",
|
||||
"character",
|
||||
"char",
|
||||
"code",
|
||||
"alphabetical"
|
||||
],
|
||||
"repository": "wooorm/is-alphabetical",
|
||||
"bugs": "https://github.com/wooorm/is-alphabetical/issues",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/wooorm"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"browserify": "^16.0.0",
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "^1.0.0",
|
||||
"remark-cli": "^7.0.0",
|
||||
"remark-preset-wooorm": "^6.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"tinyify": "^2.0.0",
|
||||
"xo": "^0.25.0"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
|
||||
"build-bundle": "browserify -s isAlphabetical -o is-alphabetical.js",
|
||||
"build-mangle": "browserify -s isAlphabetical -p tinyify -o is-alphabetical.min.js",
|
||||
"build": "npm run build-bundle && npm run build-mangle",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js",
|
||||
"test": "npm run format && npm run build && npm run test-coverage"
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"esnext": false,
|
||||
"rules": {
|
||||
"capitalized-comments": "off"
|
||||
},
|
||||
"ignores": [
|
||||
"is-alphabetical.js"
|
||||
]
|
||||
},
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
}
|
||||
}
|
||||
70
node_modules/is-alphabetical/readme.md
generated
vendored
Normal file
70
node_modules/is-alphabetical/readme.md
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# is-alphabetical
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
|
||||
Check if a character is alphabetical.
|
||||
|
||||
## Install
|
||||
|
||||
[npm][]:
|
||||
|
||||
```sh
|
||||
npm install is-alphabetical
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
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 -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/wooorm/is-alphabetical.svg
|
||||
|
||||
[build]: https://travis-ci.org/wooorm/is-alphabetical
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/is-alphabetical.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/wooorm/is-alphabetical
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/is-alphabetical.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/is-alphabetical
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/is-alphabetical.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=is-alphabetical
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://wooorm.com
|
||||
Reference in New Issue
Block a user