'use strict';

module.exports = function base_convert(number, frombase, tobase) {
  // eslint-disable-line camelcase
  //  discuss at: https://locutus.io/php/base_convert/
  // original by: Philippe Baumann
  // improved by: Rafał Kukawski (https://blog.kukawski.pl)
  //   example 1: base_convert('A37334', 16, 2)
  //   returns 1: '101000110111001100110100'

  return parseInt(number + '', frombase | 0).toString(tobase | 0);
};
//# sourceMappingURL=base_convert.js.map