Product
Introducing Ruby Support in Socket
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
any-to-any
Advanced tools
NOTE:
you can send to me for add anything you want in instgram ..$ npm install any-to-any
$ yarn add any-to-any
The method of use is simple and very easy ... Just follow these steps :
Step 1 : Import the module in this way.
const { Convert } = require ('any-to-any') ;
Step 2 : Enter the input number , the input base and the output base you want to the function.
let InputNumber = "1110111"; // 119 in decimal
let InputBase = 2 ;
let OutputBase = 8 ;
let result = Convert ( InputNumber , InputBase , OutputBase );
console.log(`*****\n ${result} \n*****`);
Step 3 : Execute method to see the result ..
$your_pc_name_with_your_directory
*****
167
*****
NOTE:
in case the input number is consists of numbers only , you can enter the number to the function in number type .. so the step 2 will be :let InputNumber = 1110111; // 119 in decimal
let InputBase = 2 ;
let OutputBase = 8 ;
let result = Convert ( InputNumber , InputBase , OutputBase );
console.log(`*****\n ${result} \n*****`);
Switching between bases numbers is becoming easier with this module .. This module can convert the integers numbers between base 2 & base 36 and soon it will be possible to convert real numbers ...
Develop the module more on the conversion in the large bases ...
2.0.0-rc (13 Jan 2020) [deprected]
FAQs
convert numbers between bases (any base to any base) 🔀 ..
The npm package any-to-any receives a total of 288 weekly downloads. As such, any-to-any popularity was classified as not popular.
We found that any-to-any demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching Ruby support for all users. Enhance your Rails projects with AI-powered security scans for vulnerabilities and supply chain threats. Now in Beta!
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.