notes/coc/extensions/node_modules/coc-prettier/node_modules/is-hexadecimal
2021-09-25 02:14:00 -07:00
..
index.js added nvim coc config files minus node modules 2021-09-25 02:14:00 -07:00
license added nvim coc config files minus node modules 2021-09-25 02:14:00 -07:00
package.json added nvim coc config files minus node modules 2021-09-25 02:14:00 -07:00
readme.md added nvim coc config files minus node modules 2021-09-25 02:14:00 -07: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