@hackylabs/deep-redact
Version:
A fast, safe and configurable zero-dependency library for redacting strings or deeply redacting arrays and objects.
11 lines (10 loc) • 329 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._bigint = void 0;
const _bigint = (value) => {
if (typeof value !== 'bigint')
return value;
const radix = 10;
return { value: { radix, number: value.toString(radix) }, _transformer: 'bigint' };
};
exports._bigint = _bigint;