# is-hex

> check if a string is a valid hexadecimal number

Latest version **1.1.3** (published 2015-12-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install is-hex
pnpm add is-hex
yarn add is-hex
bun add is-hex
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2015-12-05 |
| First published | 2014-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rory Bradford |
| Maintainers | roryrjb |
| Keywords | hex, hexadecimal, base16, regex, regexp |

## Links

- npm: https://www.npmjs.com/package/is-hex
- Repository: https://github.com/roryrjb/is-hex
- Homepage: https://github.com/roryrjb/is-hex#readme
- Issues: https://github.com/roryrjb/is-hex/issues
- npm.io page: https://npm.io/package/is-hex

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2015-12-05
- 1.0.3 — 2015-11-27
- 1.0.1 — 2015-04-20
- 1.0.0 — 2015-04-20
- 0.0.2 — 2014-12-29
- 0.0.1 — 2014-12-29

## README

# is-hex [![Build Status](https://travis-ci.org/roryrjb/is-hex.svg?branch=master)](https://travis-ci.org/roryrjb/is-hex) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

> Check if a string is a valid hexadecimal number.

### Installation

```
$ npm install is-hex
```

__Tests:__

```
$ npm test
```

### Usage

```javascript
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

---
_Source: https://npm.io/package/is-hex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
