Welcome to mirror list, hosted at ThFree Co, Russian Federation.

readme.md « is-alphanumeric « node_modules « assets - github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ada8d33429e7a1dfdeba1b9f17b16c995a1ee2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# is-alphanumeric [![Build Status](https://travis-ci.org/arthurvr/is-alphanumeric.svg?branch=master)](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)