vutran / is-alphanumerical

Check if a character is alphanumerical

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-alphanumerical Build Status Coverage Status

Check if a character is alphanumerical ([a-zA-Z0-9]).

Installation

npm:

npm install is-alphanumerical

Usage

var alphanumerical = require('is-alphanumerical');

alphanumerical('a'); // true
alphanumerical('Z'); // true
alphanumerical('0'); // true
alphanumerical(' '); // false
alphanumerical('💩'); // false

API

alphanumerical(character)

Check whether the given character code (number), or the character code at the first position (string), is alphanumerical.

Related

License

MIT © Titus Wormer

About

Check if a character is alphanumerical

License:MIT License


Languages

Language:JavaScript 100.0%