1.0.0 • Published 10 months ago

@sarmaakondi/binary-to-decimal v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Binary to Decimal Converter

This npm package provides a simple function to convert a binary string (e.g., "1010") into its decimal equivalent.

Installation

Install the package using npm

npm install @sarmaakondi/binary-to-decimal

Usage

const binaryToDecimal = require("@sarmaakondi/binary-to-decimal);

const decimalNumber = binaryToDecimal("1010);
console.log(decimalNumber); // Outputs: 10
1.0.0

10 months ago