UNPKG

@ilihub/decimal-to-hexadecimal

Version:

Decimal to hexadecimal converter TypeScript library

60 lines (36 loc) 1.8 kB
# @ilihub/decimal-to-hexadecimal Decimal to hexadecimal converter TypeScript library. ![NPM Version](https://img.shields.io/npm/v/%40ilihub%2Fdecimal-to-hexadecimal?color=33cd56&logo=npm) ![NPM](https://img.shields.io/npm/l/%40ilihub%2Fdecimal-to-hexadecimal) [![CodeFactor](https://www.codefactor.io/repository/github/ilihub/npm/badge)](https://www.codefactor.io/repository/github/ilihub/npm) [![Socket Badge](https://socket.dev/api/badge/npm/package/@ilihub/decimal-to-hexadecimal)](https://socket.dev/npm/package/@ilihub/decimal-to-hexadecimal) ## Installation ```bash # if you're using pnpm pnpm add @ilihub/decimal-to-hexadecimal # or, if you're using npm npm install @ilihub/decimal-to-hexadecimal # or, if you're using yarn yarn add @ilihub/decimal-to-hexadecimal ``` ## Usage ```javascript import { DecimalToHexadecimal } from "@ilihub/decimal-to-hexadecimal"; const decimal = 128; const hexadecimal = DecimalToHexadecimal(decimal); console.log(hexadecimal); // Output // 80 ``` --- ## 🛠️ Online Tool ⚡ You can use this npm package as an online tool by clicking on the link provided [👉🏻 here 👈🏻](https://ilihub.tech/tools/decimal-to-hexadecimal) --- <!-- sponsors_and_backers_section_start --> <!-- Please do not edit/update this section manually, it is automatically generated by the `sponsors.yml` workflow --> ## 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. ![Sponsors](https://raw.githubusercontent.com/ilihub/sponsors/sponsors/sponsors.svg) <!-- sponsors_and_backers_section_end --> ---