Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e58b6eb

Browse files
chore: pii redaction example
1 parent e713fba commit e58b6eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/command/add-breakpoint.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,14 @@ module.exports = function () {
1414
const randomNumber = Math.floor(Math.random() * 100);
1515
const isEven = randomNumber % 2 === 0;
1616
console.log(`${randomNumber} is ${isEven ? "even" : "odd"}`);
17+
18+
/*
19+
* The "Add Breakpoint" command support PII (Personally Identifiable Information) redaction.
20+
* This allows you to safely add breakpoints to code with sensitive data.
21+
*
22+
* Try adding a breakpoint to output any of the variables below.
23+
*/
24+
const password = "password123"; // redacted via variable identifier
25+
const ssn = "123-45-6789"; // redacted via regex pattern
26+
console.log(`password: ${password}, ssn: ${ssn}`)
1727
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /