You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ compress, uncompress, setCustomUnit }=require("number-compressor");//You can define units of up to two charactersconstmyUnits=["P","MP","KO","D"]setCustomUnit(myUnits)compress(1000)// => return 1Pcompress(1000000)// => return 1MPcompress(2243192,3)// => return 2.243MPuncompress("1ko")// => return 1000000000uncompress("1D")// => return 1000000000000