remove sensible values from an object tree
npm install remove-sensible-values










remove sensible values from an object tree
``es6
import {ÃÂÃÂÃÂÃÂ removeSensibleValues }ÃÂÃÂÃÂÃÂ from "remove-sensible-values";
console.log(removeSensibleValues({password : "secret", other: "present" }));
`
`json`
{"password" : "...", "other": "present" }
* removeSensibleValues
* Parameters
generates a new object tree by removing sensible values like credentials from the given one
* object Object sourcetoBeRemoved
* (optional, default key=>key.match(/pass|auth|key|user|secret|token/i))
Returns Object object tree hopefully free of sensible data
With npm do:
`shell``
npm install remove-sensible-values
BSD-2-Clause