Files
node/tools/node_modules/eslint/node_modules/is-hexadecimal
Yuta Hiroto 8c6d1a0686 tools: update ESLint to 5.2.0
PR-URL: https://github.com/nodejs/node/pull/21817
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-07-28 06:05:49 -07:00
..
2018-06-24 12:43:54 -04:00
2018-07-28 06:05:49 -07:00
2018-06-24 12:43:54 -04:00

is-hexadecimal Build Status Coverage Status

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.

License

MIT © Titus Wormer