Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
deep-redact
Advanced tools
deep-redact
Deep redact is a package that recursively redacts sensitive data from JavaScript primitives based on a list of keys.
⚠️ This package is ESM only.
npm install deep-redact
import { redact } from "deep-redact";
const data = {
email: "hello@test.com",
password: "123456",
dontReactMe: "123456",
};
const result = redact(data, {
list: ["email", "password"],
strict: true,
redactString: "[REDACTED]",
jsonString: '{ "email": "hello@test.com"}',
url: "https://cv.moshie.dev/redactor?this=test&password=12345&email=hello@test.com",
});
console.log(result);
// { email: "[REDACTED]", password: "[REDACTED]", dontReactMe: "123456", jsonString: { email: "[REDACTED]"}, url: "https://cv.moshie.dev/redactor?email=%5BREDACTED%5D&password=%5BREDACTED%5D&this=test" }
redactString
- The string to replace the redacted data with. Default is [REDACTED]
.
list
- An array of keys to redact. Default is []
.
strict
- A boolean to determine if the data should be redacted or not. Default is false
.
1.0.4
FAQs
Deeply redact sensitive data from JS primitives
The npm package deep-redact receives a total of 0 weekly downloads. As such, deep-redact popularity was classified as not popular.
We found that deep-redact demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.