Strip passwords from an object
$ npm install --save strip-passwords
var clean = require('strip-passwords')
clean({ password: 'test' })
// => { password: '****' }
// or pass options
clean({ password: 'test' }, {
replace: '____'
})
// => { password: '____' }
replace
: The string to use for replacement
Evan Lucas
MIT (See LICENSE
for more info)