is-hex

check if a string is a valid hexadecimal number

Development of this module has been stopped.
Last updated 11 years ago by roryrjb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install is-hex 
SYNC missed versions from official npm registry.

is-hex Build Status js-standard-style

Check if a string is a valid hexadecimal number.

Installation

$ npm install is-hex

Tests:

$ npm test

Usage

const isHex = require('is-hex')

isHex('08f67a') // true
isHex('08-f67a') // false
isHex('ffffffx') // false
isHex({}) // false
isHex([]) // false
isHex(88) // false
isHex(true) // false
isHex('0192') // true

License

MIT

Current Tags

  • 1.1.3                                ...           latest (11 years ago)

6 Versions

  • 1.1.3 [deprecated]           ...           11 years ago
  • 1.0.3 [deprecated]           ...           11 years ago
  • 1.0.1 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           12 years ago
  • 0.0.2 [deprecated]           ...           12 years ago
  • 0.0.1 [deprecated]           ...           12 years ago
Maintainers (1)
Downloads
Total 21
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 15
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE