tree: 8e65730faccbf049c314c51358e861626182f221 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/is-hexadecimal/readme.md

is-hexadecimal

Build Coverage Downloads Size

Check if a character is hexadecimal.

Installation

npm:

npm install is-hexadecimal

Usage

var hexadecimal = require('is-hexadecimal')

hexadecimal('a') // => true
hexadecimal('0') // => true
hexadecimal('G') // => false
hexadecimal('💩') // => false

API

hexadecimal(character|code)

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

Related

License

MIT © Titus Wormer