1.0.1 • Published 12 months ago

bconverter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

BConverter

A simple conversion way

An API that provides functionality for converting number bases. With this API, you can easily perform conversion operations between different number bases, such as binary, decimal and hexadecimal, allowing users to quickly and accurately convert numbers from one base to another.

BConverter is a flexible and scalable solution that can be easily integrated into applications, web systems or software projects. With clear and simple documentation, developers will be able to take full advantage of the functionalities offered by the API as a JavaScript package, simplifying the tasks of converting numerical bases and encryption/decryption in their projects.

Installation

npm:

$ npm install bconverter

yarn:

$ yarn add bconverter

Usage

const { converter } = require("bconverter");

console.log(converter.decimalToBinary(10));
// output: 1010

This can also be started as a node.js server:

$ tsc --watch
$ yarn start

and then allow access to the project's API:

$ curl http://localhost:8080/converter/decimal-to-binary/10

Conversion routes

PrefixConversion typeValue type
converterdecimal-to-binarynumber
converterbinary-to-decimalnumber
converterdecimal-to-hexadecimalstring
converterhexadecimal-to-decimalstring
converterbinary-to-hexadecimalstring
converterhexadecimal-to-binarystring
converterdecimal-to-octalnumber
converterhexadecimal-to-binarystring
converteroctal-to-decimalnumber
converteroctal-to-hexadecimalstring
converterhexadecimal-to-octalstring
converteroctal-to-binarynumber
converterbinary-to-octalnumber