@exodus/safe-string
v1.3.1
Published
Library for generating safe strings that redact sensitive information
Downloads
5,460
Maintainers
Readme
@exodus/safe-string
Build safe strings that can be used in error messages and stack traces without leaking sensitive information.
Usage
import { safeString, isSafe } from '@exodus/safe-string'
const planet = 'world'
const result = safeString`Hello ${planet}`
console.log(result) // 'Hello <redacted>'
isSafe(result) // true