UNPKG

@rxap/node-utilities

Version:

Provides a set of utility functions for Node.js development, including file system operations, git integration, and package.json manipulation. It offers functionalities like copying folders, reading JSON files with retry logic, retrieving the current git

13 lines (12 loc) 490 B
import { Ignore } from 'ignore'; /** * Searches for files in a directory recursively. * * @param {string} directory - The directory path to search in. * @param {Ignore|null} gitignore - The gitignore object to check if a file is ignored. Default is null. * @yields {Object} - An object containing the file content and file path. */ export declare function SearchFileInDirectory(directory: string, gitignore?: Ignore | null): Generator<{ content: string; filePath: string; }>;