This commit is contained in:
8
node_modules/is-alphanumeric/index.js
generated
vendored
Normal file
8
node_modules/is-alphanumeric/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
module.exports = function (str) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return !/[^0-9a-z\xDF-\xFF]/.test(str.toLowerCase());
|
||||
};
|
||||
21
node_modules/is-alphanumeric/license
generated
vendored
Normal file
21
node_modules/is-alphanumeric/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Arthur Verschaeve <contact@arthurverschaeve.be> (arthurverschaeve.be)
|
||||
|
||||
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.
|
||||
41
node_modules/is-alphanumeric/package.json
generated
vendored
Normal file
41
node_modules/is-alphanumeric/package.json
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "is-alphanumeric",
|
||||
"version": "1.0.0",
|
||||
"description": "Check if a string only contains alphanumeric characters",
|
||||
"license": "MIT",
|
||||
"repository": "arthurvr/is-alphanumeric",
|
||||
"author": {
|
||||
"name": "Arthur Verschaeve",
|
||||
"email": "contact@arthurverschaeve.be",
|
||||
"url": "arthurverschaeve.be"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"numbers",
|
||||
"numeric",
|
||||
"alphabet",
|
||||
"alphabetic",
|
||||
"check",
|
||||
"is",
|
||||
"detect",
|
||||
"latin",
|
||||
"alphanumeric",
|
||||
"string",
|
||||
"text",
|
||||
"letters",
|
||||
"digit",
|
||||
"arabic",
|
||||
"alphameric"
|
||||
],
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
}
|
||||
}
|
||||
40
node_modules/is-alphanumeric/readme.md
generated
vendored
Normal file
40
node_modules/is-alphanumeric/readme.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# is-alphanumeric [](https://travis-ci.org/arthurvr/is-alphanumeric)
|
||||
|
||||
> Check if a string only contains alphanumeric characters
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save is-alphanumeric
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isAlphanumeric = require('is-alphanumeric');
|
||||
|
||||
isAlphanumeric('unicorns');
|
||||
//=> true
|
||||
|
||||
isAlphanumeric('55');
|
||||
//=> true
|
||||
|
||||
isAlphanumeric('ABC');
|
||||
//=> true
|
||||
|
||||
isAlphanumeric('*unicorns');
|
||||
//=> false
|
||||
|
||||
isAlphanumeric('{unicorns}');
|
||||
//=> false
|
||||
|
||||
isAlphanumeric(' ');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Arthur Verschaeve](http://arthurverschaeve.be)
|
||||
Reference in New Issue
Block a user