Skip to content

Effortlessly convert between decimal, char, hexadecimal, octal, and binary representations with this versatile JavaScript utility. Simplify your coding tasks and streamline your programming experience.

Notifications You must be signed in to change notification settings

fredrecco/bscnvert

Repository files navigation

bscnvert

Effortlessly convert between decimal, char, hexadecimal, octal, and binary representations with this versatile JavaScript utility. Simplify your coding tasks and streamline your programming experience.

Instalation

First install Node.js. Then:

npm install bscnvert

# or

yarn add bscnvert

Importing

Using CommonJS require()

const base = require('bscnvert');

Using ES6/TypeScript imports

import base from 'bscnvert';

How to use

Example

const base = require('bscnvert');

base.binary.toDecimal('1000'); // return 8

// or

const { binary } = require('bscnvert');

binary.toChar('01110100 01100101 01110011 01110100'); // return 'test'

Running Tests

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

About

Effortlessly convert between decimal, char, hexadecimal, octal, and binary representations with this versatile JavaScript utility. Simplify your coding tasks and streamline your programming experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published