Nihilist Postmodern Mistake
Have ideas to improve npm?Join in the discussion! »

is-alphanumeric

1.0.0 • Public • Published

is-alphanumeric Build Status

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

Install

npm i is-alphanumeric

DownloadsWeekly Downloads

1,748,504

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar