[go: nahoru, domu]

tree: 59f8680d60e6446ec7496870ef3e2c730b72b662 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/is-hexadecimal/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