Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/globber/src/globber.ts>GlobberProps

Include and excludes files and directories from a deep search of the provided root directory
Latest
interface GlobberProps
implements CreateMatcherProps, BaseGlobberProps
import { type GlobberProps } from "https://deno.land/x/globber@0.1.0/src/globber.ts";

Properties

optional
cwd: string | URL | undefined

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

optional
include: Match | Match[] | undefined

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[] | undefined

Any matching patterns will be excluded from the results.