lhl 6ff0e96ad3 8-4-1 1 год назад
..
index.js 6ff0e96ad3 8-4-1 1 год назад
license 6ff0e96ad3 8-4-1 1 год назад
package.json 6ff0e96ad3 8-4-1 1 год назад
readme.md 6ff0e96ad3 8-4-1 1 год назад

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