Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dantelex authored Oct 7, 2024
1 parent 958b72f commit c1a6fa2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { useSecureLog } from "securelog-rsc";

const MyComponent = () => {
return (
<div>My secret key is sk_test_1234567890123456789012345678901234567890</div>
<div>My secret key is sk_test_***********************</div>
);
};

Expand Down Expand Up @@ -89,7 +89,7 @@ const customPatterns = [
customPatterns={customPatterns}
onSecretFound={(secret) => console.log("Custom secret found:", secret)}
>
<div>My custom key is ck_abc123def456ghi789jkl012mno345pqr</div>
<div>My custom key is ck_**************************</div>
</SecureLog>;
```

Expand All @@ -102,7 +102,7 @@ You can enable masking to replace detected secrets with asterisks. This will bot
mask={true}
onSecretFound={(secret) => console.log("Masked secret found:", secret)}
>
<div>My Paystack key is sk_test_1234567890123456789012345678901234567890</div>
<div>My Stripe key is sk_test_**************************</div>
</SecureLog>
```

Expand All @@ -112,8 +112,8 @@ You can exclude certain components from the inspection process by passing an arr

```tsx
<SecureLog excludeComponents={["input", "textarea"]}>
<div>My Paystack key is sk_test_1234567890123456789012345678901234567890</div>
<input value="sk_test_1234567890123456789012345678901234567890" />
<div>My Stripe key is sk_test_****************************</div>
<input value="sk_test_*******************************" />
</SecureLog>
```

Expand Down

0 comments on commit c1a6fa2

Please sign in to comment.