When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { globSync } from 'node:fs';
console.log(globSync('*.js'));
function
When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { globSync } from 'node:fs';
console.log(globSync('*.js'));
paths of files that match the pattern.
When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { globSync } from 'node:fs';
console.log(globSync('*.js'));
paths of files that match the pattern.
When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { globSync } from 'node:fs';
console.log(globSync('*.js'));
paths of files that match the pattern.
When followSymlinks is enabled, detected symbolic link cycles are not traversed recursively.
import { globSync } from 'node:fs';
console.log(globSync('*.js'));
paths of files that match the pattern.
Function to filter out files/directories or a list of glob patterns to be excluded. If a function is provided, return true to exclude the item, false to include it. If a string array is provided, each string should be a glob pattern that specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are not supported.
When true, symbolic links to directories are followed while expanding ** patterns.
A representation of a directory entry, which can be a file or a subdirectory within the directory, as returned by reading from an fs.Dir. The directory entry is a combination of the file name and file type pairs.
Additionally, when readdir or readdirSync is called with the withFileTypes option set to true, the resulting array is filled with fs.Dirent objects, rather than strings or Buffer s.
The file name that this fs.Dirent object refers to. The type of this value is determined by the options.encoding passed to readdir or readdirSync.
Returns true if the fs.Dirent object describes a block device.
Returns true if the fs.Dirent object describes a character device.
Returns true if the fs.Dirent object describes a file system directory.
Returns true if the fs.Dirent object describes a first-in-first-out (FIFO) pipe.
Returns true if the fs.Dirent object describes a regular file.
Returns true if the fs.Dirent object describes a socket.
Returns true if the fs.Dirent object describes a symbolic link.
Function to filter out files/directories or a list of glob patterns to be excluded. If a function is provided, return true to exclude the item, false to include it. If a string array is provided, each string should be a glob pattern that specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are not supported.
When true, symbolic links to directories are followed while expanding ** patterns.
Function to filter out files/directories or a list of glob patterns to be excluded. If a function is provided, return true to exclude the item, false to include it. If a string array is provided, each string should be a glob pattern that specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are not supported.
When true, symbolic links to directories are followed while expanding ** patterns.