strip-passwords
v1.1.2
Published
Strip passwords from an object
Downloads
5
Readme
strip-passwords
Strip passwords from an object
Install
$ npm install --save strip-passwords
Usage
var clean = require('strip-passwords')
clean({ password: 'test' })
// => { password: '****' }
// or pass options
clean({ password: 'test' }, {
replace: '____'
})
// => { password: '____' }
Options
replace
: The string to use for replacement
Author
Evan Lucas
License
MIT (See LICENSE
for more info)