number-x
v0.2.0
Published
number
Downloads
3
Readme
#number-x 任意进制与10进制的双向转化
conver
nx = require 'number-x'
chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVTXYZ'
assert.equal nx.toStr('38', chars), 'C'
assert.equal nx.('38', chars), 'C'
tool
assert.equal nx.lpad('12321', 7, 'a'), 'aa12321'