sidorares / json-bigint

JSON.parse/stringify with bigints support
MIT License
790 stars 189 forks source link

Support to fixed output of integers (without exponents) #82

Open uhbif19 opened 1 year ago

uhbif19 commented 1 year ago

Currently, in stringify code uses String() for translation.

BigNumber has an alternative conversion method bigNumber.toFixed(), which always returns a number without an exponent. Would be cool to have an option for that.

Could propose PR for that it you okay with idea.