npm.io
1.1.4 • Published 2 years ago

@types/hex2dec

Licence
MIT
Version
1.1.4
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/**
 * 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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Adriaan Knapen.