is-alphanumeric
v1.0.0
Published
Check if a string only contains alphanumeric characters
Downloads
2,433,392
Maintainers
Readme
is-alphanumeric
Check if a string only contains alphanumeric characters
Install
$ npm install --save is-alphanumeric
Usage
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