Binary to Decimal and Decimal to Binary Functions
After downloading, just run the index.js file and you will get a small command line tool to help you convert the numbers.
If you want to use the functions on your own code, first, you'll have to import the code.
import { binToDec, decToBin } from './bintodec.js'Then, you'll be able to run the functions rigth inside your program.