strip-passwords

1.1.2 • Public • Published

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)

/strip-passwords/

    Package Sidebar

    Install

    npm i strip-passwords

    Weekly Downloads

    0

    Version

    1.1.2

    License

    MIT

    Last publish

    Collaborators

    • eh
    • nubs
    • evanlucas