tobase

1.0.4 • Public • Published

toBase

Transform an integer from base 10 to base 1 < x < 11. The first parameter is your base 10 integer and the second parameter is the desired base. toBase returns a number.

const toBase = require('tobase');
 
toBase(29, 3);
// => 1002

Readme

Keywords

Package Sidebar

Install

npm i tobase

Weekly Downloads

5

Version

1.0.4

License

ISC

Last publish

Collaborators

  • mundvetter