|
|
il y a 6 jours | |
|---|---|---|
| .. | ||
| index.js | il y a 6 jours | |
| license | il y a 6 jours | |
| package.json | il y a 6 jours | |
| readme.md | il y a 6 jours | |
Check if a string only contains alphanumeric characters
$ npm install --save is-alphanumeric
var isAlphanumeric = require('is-alphanumeric');
isAlphanumeric('unicorns');
//=> true
isAlphanumeric('55');
//=> true
isAlphanumeric('ABC');
//=> true
isAlphanumeric('*unicorns');
//=> false
isAlphanumeric('{unicorns}');
//=> false
isAlphanumeric(' ');
//=> false
MIT © Arthur Verschaeve