lhl 6ff0e96ad3 8-4-1 vor 1 Jahr
..
index.js 6ff0e96ad3 8-4-1 vor 1 Jahr
license 6ff0e96ad3 8-4-1 vor 1 Jahr
package.json 6ff0e96ad3 8-4-1 vor 1 Jahr
readme.md 6ff0e96ad3 8-4-1 vor 1 Jahr

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