Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 720 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 720 Bytes

hexadecimal-to-decimal

hexadecimal-to-decimal is a simple nodejs package to convert hexadecimal to decimal easily, can be used with Angular, React, Vue and any other framework.

Installation

npm i hexadecimal-to-decimal --save

Usage

Convert with just one line of code

  • For one of my clients, I had to created a Hexadecimal to decimal converter and then save value to the database. I wasted a lot of time searching online about these numbers. So, I thought uploading a package for the users can be helpful. I used Bignumber.js library to convert bigger numbers.

Hexadecimal to decimal conversion:

var decimal = require('hexadecimal-to-decimal')

console.log(decimal.decimal("10"));