binaries_convertions

1.0.1 • Public • Published

binaries conversions

Binaries Conversions is a tool that let you convert numbers to binary, hexadecimal, octal and vice versa.

Example

const { HexToBinary, BinaryToDecimal, OctalToHex, DecimalToOctal } = require('./index');

let n1 = '4F';
let n2 = '0111';
let n3 = '882';
let n4 = 50;

// convert hex to binary
console.log(HexToBinary(n1));

// convert binary to decimal
console.log(BinaryToDecimal(n2));

// convert octal to hex
console.log(OctalToHex(n3));

// convert decimal to octal
console.log(DecimalToOctal(n4));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i binaries_convertions

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.16 kB

Total Files

5

Last publish

Collaborators

  • mrthomas20121