Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ningen/mod.ts>Ningen#glob

Simple ninja build generator
Latest
method Ningen.prototype.glob
import { Ningen } from "https://deno.land/x/ningen@0.0.6/mod.ts";

Returns all files matching the given glob(s). Optionally can supply other globs to exclude certain paths.

Supply either a single string, e.g. glob("*.jpg"), or an array of strings, e.g. glob(["*.jpg", "*.png"]).

Parameters

globs: string | string[]
optional
unnamed 1: { exclude?: string[]; canBeEmpty?: boolean; } = [UNSUPPORTED]