remove-sensible-values
v1.3.2
Published
remove sensible values from an object tree
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
objectObject 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-valueslicense
BSD-2-Clause
