Skip to content

helpdotcom/strip-passwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 14, 2016
fd8fbab · Sep 14, 2016

History

12 Commits
Sep 14, 2016
Sep 14, 2016
Aug 31, 2015
Apr 29, 2016
Aug 31, 2015
Sep 1, 2015
Aug 31, 2015
Sep 14, 2016

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)