Wraps a credential. toString(), JSON.stringify and util.inspect all print REDACTED; Secret.reveal returns the value.
toString()
JSON.stringify
util.inspect
Constant-time-ish comparison with another value.
The wrapped value.
Static
Wraps a string (returns undefined for undefined/empty, keeps an existing Secret).
undefined
Wraps a credential.
toString(),JSON.stringifyandutil.inspectall print REDACTED; Secret.reveal returns the value.