Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/path/globrex.ts>globrex

A modern runtime for JavaScript and TypeScript.
Go to Latest
function globrex
import { globrex } from "https://deno.land/x/deno@v0.28.0/std/path/globrex.ts";

Convert any glob pattern to a JavaScript Regexp object

Parameters

glob: string

Glob pattern to convert

optional
unnamed 1: GlobrexOptions = [UNSUPPORTED]

Configuration object

Returns

Converted object with string, segments and RegExp object