@earnest-labs/ts-sensitivestring
v0.2.178
Published
A simple type that won’t accidentally leak secrets if you log out objects containing it.
Downloads
3,207
Readme
ts-sensitivestring
A simple type that won’t accidentally leak secrets if you log out objects containing it.
Install
npm i --save @earnest-labs/ts-sensitivestring
Use
import SensitiveString from '@earnest-labs/ts-sensitivestring';
const ss = new SensitiveString("foo")
console.log("This won't leak the value of ss:", ss)
console.log("This _will_ leak the value of ss:", ss.getValue())