# isAlphaNumeric > Test whether a string contains only alphanumeric characters.
## Usage ```javascript var isAlphaNumeric = require( '@stdlib/assert/is-alphanumeric' ); ``` #### isAlphaNumeric( value ) Tests whether a string contains only alphanumeric characters. ```javascript var bool = isAlphaNumeric( 'abc0123456789' ); // returns true ```
## Notes - For non-string values, the function returns `false`. - _Alphanumeric_ is defined as the characters `a-zA-Z` and the numeric characters `0-9`.
## Examples ```javascript var isAlphaNumeric = require( '@stdlib/assert/is-alphanumeric' ); var out = isAlphaNumeric( 'abs0123456789' ); // returns true out = isAlphaNumeric( '0xffffff' ); // returns true out = isAlphaNumeric( '' ); // returns false out = isAlphaNumeric( 123 ); // returns false ```
* * *
## CLI
### Usage ```text Usage: is-alphanumeric [options] [] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ is-alphanumeric 01abc23456789 true ``` To use as a [standard stream][standard-streams], ```bash $ echo -n '0123456789' | is-alphanumeric true ```