Fetch the repository succeeded.
Radix.js is a simple javascript module to convent number to 2-64 radix, decimal supported. 一个用于数字进制转换的 JavaScript 模块,默认支持 2-64 进制(可自定义),支持小数的进制转化。
npm install radix.js
Or download dist/radix.min.js
source file.
Script
tag.<script type="text/javascript" src="dist/radix.min.js"></script>
ES6
style.var Radix = require('radix.js');
//or
import Radix from 'radix.js';
There is only one API named convent
.
var radix = new Radix();
radix.convent(5201314, 10, 64); // will convent number 5301314 from radix 10 to radix 64.
Now the max radix is 64, and the formatter is: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@
. Also you can set your own formatter like below:
var radix = new Radix('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#');
radix.convent('jRSy', 64);
npm install
npm test
MIT@hustcc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。