Skip to content

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 ​

ParameterTypeDescription
patterns?readonly string[]Optional custom regular expression pattern strings.

Returns ​

FsSecretLiteralsGuardNode

Deeply frozen FsSecretLiteralsGuardNode AST descriptor.

Released under the MIT License.