mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
3d65177dbc
Use $STD_VERSION in std/ README files to automatically display proper version.
523 B
523 B
Deno Path Manipulation Libraries
Usage:
import * as path from "https://deno.land/std@$STD_VERSION/path/mod.ts";
globToRegExp
Generate a regex based on glob pattern and options This was meant to be using
the the fs.walk
function but can be used anywhere else.
import { globToRegExp } from "https://deno.land/std@$STD_VERSION/path/glob.ts";
globToRegExp("foo/**/*.json", {
flags: "g",
extended: true,
globstar: true,
}); // returns the regex to find all .json files in the folder foo.