UNPKG

@hackylabs/deep-redact

Version:

A fast, safe and configurable zero-dependency library for redacting strings or deeply redacting arrays and objects.

7 lines (6 loc) 206 B
export const _bigint = (value) => { if (typeof value !== 'bigint') return value; const radix = 10; return { value: { radix, number: value.toString(radix) }, _transformer: 'bigint' }; };