@ilihub/hexadecimal
Hexadecimal number system conversion typescript functions
Installation
# if you're using pnpm
pnpm add @ilihub/hexadecimal
# or, if you're using npm
npm install @ilihub/hexadecimal
# or, if you're using yarn
yarn add @ilihub/hexadecimal
Usage
import { Hexadecimal } from "@ilihub/hexadecimal";
const hexadecimal = new Hexadecimal("41");
const ascii = hexadecimal.toAscii();
console.log(ascii); // A
const binary = hexadecimal.toBinary();
console.log(binary); // 01000001
const decimal = hexadecimal.toDecimal();
console.log(decimal); // 65
const octal = hexadecimal.toOctal();
console.log(octal); // 101
Sponsors & Backers
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.