remove-sensible-values
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

npm License Typed with TypeScript bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

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 source
  • toBeRemoved (optional, default key=>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

Readme

Keywords

Package Sidebar

Install

npm i remove-sensible-values

Weekly Downloads

825

Version

1.3.1

License

BSD-2-Clause

Unpacked Size

7.39 kB

Total Files

5

Last publish

Collaborators

  • arlac77