lhl 6ff0e96ad3 8-4-1 1 anno fa
..
index.js 6ff0e96ad3 8-4-1 1 anno fa
license 6ff0e96ad3 8-4-1 1 anno fa
package.json 6ff0e96ad3 8-4-1 1 anno fa
readme.md 6ff0e96ad3 8-4-1 1 anno fa

readme.md

is-hexadecimal

Build Coverage Downloads Size

Check if a character is hexadecimal.

Install

npm:

npm install is-hexadecimal

Use

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