2024-06-15 00:55:43 +03:00
..
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00

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.

License

MIT 漏 Titus Wormer