json-bigint-support-decimal
v1.0.0
Published
JSON.parse with bigints support
Downloads
5
Maintainers
Readme
fork from https://github.com/sidorares/json-bigint
add suppport for decimal
添加了
Number.isSafeInteger = Number.isSafeInteger || function (value) {
return Number.isInteger(value) && Math.abs(value) <= Number.MAX_SAFE_INTEGER;
};
npm上官方1.0.0的版本 不包含(源码有 但没有发布npm包) Number.isSafeInteger(number)相关的判断逻辑
补充后发布一个相关的包