# @types/hex2dec

> TypeScript definitions for hex2dec

Latest version **1.1.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/hex2dec
pnpm add @types/hex2dec
yarn add @types/hex2dec
bun add @types/hex2dec
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-11-07 |
| First published | 2020-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hex2dec
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex2dec
- npm.io page: https://npm.io/package/@types/hex2dec

## Recent versions

- 1.1.4 (latest) — 2023-11-07
- 1.1.2 (ts3.6) — 2021-07-08
- 1.1.1 (ts3.5) — 2021-05-21
- 1.1.0 (ts3.0) — 2020-07-12
- 1.1.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/hex2dec`

# Summary
This package contains type definitions for hex2dec (https://github.com/donmccurdy/hex2dec#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex2dec.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex2dec/index.d.ts)
````ts
/**
 * Takes a hexadecimal string and, when the hexedecimal is valid,
 * returns it as a decimal string.
 */
export function hexToDec(hexStr: string): string | null;
/**
 * Takes a decimal string and, when the decimal is valid,
 * returns it as a hexadecimal string.
 */
export function decToHex(decStr: string, opts?: { prefix?: boolean | undefined }): string | null;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Adriaan Knapen](https://github.com/Addono).

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