1.0.4 • Published 9 years ago
tobase v1.0.4
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