Masked
Mask sensitive values in a collection
Install
$ npm install masked
Usage
; const user = firstName: 'jake' password: 'IAmCool' mobileNumbers: '0400123123' '0411223444' providerData: providerNumber: '123456' providerNumber: '123456' ; const maskedUser = ;/*maskedUser = { firstName: 'jake', password: '********', mobileNumbers: ['********', '********'], providerData: [{ providerNumber: '********' }, { providerNumber: '********' }] }*/
and here
API
masked(data, keys[, opts])
data
Type: Object
or Array<Object>
The data that you want to mask.
keys
Type: string
or Array
The sensitive keys in your data
.
opts
omitKeys
Type: boolean
Default value: false
If true
, it will omit the keys completely from the data.
License
MIT © jxom