remove-sensible-values
v1.3.1
Published
remove sensible values from an object tree
Downloads
2,692
Readme
remove-sensible-values
remove sensible values from an object tree
import {ÃÂ removeSensibleValues }ÃÂ from "remove-sensible-values";
console.log(removeSensibleValues({password : "secret", other: "present" }));
{"password" : "...", "other": "present" }
API
Table of Contents
removeSensibleValues
generates a new object tree by removing sensible values like credentials from the given one
Parameters
object
Object sourcetoBeRemoved
(optional, defaultkey=>key.match(/pass|auth|key|user|secret|token/i)
)
Returns Object object tree hopefully free of sensible data
install
With npm do:
npm install remove-sensible-values
license
BSD-2-Clause