Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 520 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 520 Bytes

number_to_hex

A package that takes in a single parameter num and converts it to a hexadecimal string

Installation

npm

npm install number_to_hex

yarn

yarn add number_to_hex

Usage

const NumberToHex = require("number_to_hex");

console.log(NumberToHex(5)); //This will output: "0x5"

Contributing

Feel free to make a pull request.

License

ISC

authored by:

Samuel Nzomo

View the code in Github