Function: createFsSecretLiteralsGuardBuilder()
ts
function createFsSecretLiteralsGuardBuilder(patterns?): FsSecretLiteralsGuardNode;Defined in: fs/src/builders/create-fs-secret-literals-guard-builder.ts:13
Compiles a passive FsSecretLiteralsGuardNode (fs:secret-literals) for fs.secretLiterals(patterns).
Scans proposedContent on pre-flight and post-flight file writes against built-in credential patterns and any custom regex patterns.
Parameters
| Parameter | Type | Description |
|---|---|---|
patterns? | readonly string[] | Optional custom regular expression pattern strings. |
Returns
Deeply frozen FsSecretLiteralsGuardNode AST descriptor.