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