0.0.5 • Published 5 years ago

@pelevesque/change-number-base v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Build Status Coverage Status JavaScript Style Guide

change-number-base

Converts a number from one base to another.

Node Repository

https://www.npmjs.com/package/@pelevesque/change-number-base

Installation

npm install @pelevesque/change-number-base

Tests

CommandDescription
npm test or npm run testAll Tests Below
npm run coverStandard Style
npm run standardCoverage
npm run unitUnit Tests

Usage

const changeNumberBase = require('@pelevesque/change-number-base')
const num = 102
const initialBase = 3
const newBase = 10
const result = changeNumberBase(num, initialBase, newBase)
// result === 11