• Produces a set of all unique file extensions found in a directory This is a convenience function that combines getDirectoryStructure and convertDirectoryNodeToTypeSet

    Parameters

    • dirPath: string

      Absolute path to the directory to analyze

    • Optionaloptions: DirectoryStructureOptions

      Optional directory traversal options

    Returns Set<string>

    Set of file extensions (including the dot, e.g., '.ts', '.js') Files without extensions are represented as 'none'

    const fileTypes = produceFileTypeSet('/path/to/project');
    console.log(fileTypes); // Set { '.ts', '.js', '.json', '.md', 'none' }
    // With options
    const fileTypes = produceFileTypeSet('/path/to/project', {
    includeHidden: false,
    maxDepth: 5
    });