Documentation Index
Fetch the complete documentation index at: https://mint-tsdocs.saulo.engineer/llms.txt
Use this file to discover all available pages before exploring further.
SecurityUtils
Summary
Security utilities for input validation, sanitization, and secure file operations.
Signature
export declare class SecurityUtils
Constructors
No constructors defined.
Properties
No properties defined.
Methods
parseJsonSafe
Modifiers: static
Safely parses JSON with prototype pollution protection. Filters out dangerous keys like proto, constructor, and prototype.
sanitizeJsonForJsx
Modifiers: static
Sanitizes JSON data for safe embedding in JSX components. Prevents JSON injection and ensures proper formatting.
sanitizeJsxAttribute
Modifiers: static
Sanitizes text for safe use in JSX attributes. Prevents JSX injection and ensures proper escaping.
sanitizeYamlText
Modifiers: static
Sanitizes text for safe use in YAML frontmatter. Prevents YAML injection and ensures proper formatting.
Modifiers: static
Validates and sanitizes CLI input parameters.
validateFilename
Modifiers: static
Validates that a filename is safe to use. Prevents reserved names, path traversal, and dangerous characters.
validateFilePath
Modifiers: static
Validates that a file path is within the allowed base directory. Prevents path traversal attacks.
validateJsonContent
Modifiers: static
Validates JSON content to ensure it’s safe to parse.
Events
No events defined.