UNPKG

@hackylabs/deep-redact

Version:

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

6 lines (5 loc) 149 B
export const _url = (value) => { if (value instanceof URL) return { value: value.toString(), _transformer: 'url' }; return value; };