Skip to main content
Module

x/scaffold/src/glob.ts>GlobProps

scaffold your next project with style and 💗
Latest
interface GlobProps
implements CreateMatcherOptions, BaseGlobProps
import { type GlobProps } from "https://deno.land/x/scaffold@0.3.0/src/glob.ts";

Properties

cwd: string | URL

The search will be resolved from this directory and relative paths in the GlobEntry are relative to this path.

optional
include: Match | Match[]

Provide matchers to match by the file / directory name relative to the cwd.

If left undefined, all files and directories will be matched. This is the equivalent of setting

matches: ['**']

In order to ignore files lead the glob with a !.

matches: ['!node_modules/**', '**']

The above will ignore all files and directories in the node_modules directory.

optional
exclude: Match | Match[]

Any matching patterns will be excluded from the results.