Effortlessly convert between decimal, char, hexadecimal, octal, and binary representations with this versatile JavaScript utility. Simplify your coding tasks and streamline your programming experience.
First install Node.js. Then:
npm install bscnvert
# or
yarn add bscnvert
Using CommonJS require()
const base = require('bscnvert');
Using ES6/TypeScript imports
import base from 'bscnvert';
const base = require('bscnvert');
base.binary.toDecimal('1000'); // return 8
// or
const { binary } = require('bscnvert');
binary.toChar('01110100 01100101 01110011 01110100'); // return 'test'
To run the test suite, first clone the repository:
git clone https://github.com/fredrecco/bscnvert.git
Install the dependencies:
npm install
# or
yarn
Then run:
npm test
# or
yarn test