Files
node/tools/node_modules/eslint/node_modules/is-hexadecimal
Yuta Hiroto 98d461e8cc 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-31 09:35:46 +02:00
..
2018-06-24 20:24:57 +02:00
2018-07-31 09:35:46 +02:00
2018-06-24 20:24:57 +02: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