Skip to content

helpdotcom/strip-passwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strip-passwords

Build Status Coverage Status

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)