1.0.2 • Published 4 months ago

basecnvt v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Basecnvt

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 basecnvt

# or

yarn add basecnvt

Importing

Using CommonJS require()

const base = require('basecnvt');

Using ES6/TypeScript imports

import base from 'basecnvt';

How to use

Example

const base = require('basecnvt');

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

// or

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

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

Running Tests

To run the test suite, first clone the repository:

git clone https://github.com/reecco/basecnvt.git

Install the dependencies:

npm install

# or

yarn

Then run:

npm test

# or

yarn test
1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago