Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 766 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 766 Bytes

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)