mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
.. | ||
_constants.ts | ||
_interface.ts | ||
_util.ts | ||
basename_test.ts | ||
common_test.ts | ||
common.ts | ||
dirname_test.ts | ||
extname_test.ts | ||
from_file_url_test.ts | ||
glob_test.ts | ||
glob.ts | ||
isabsolute_test.ts | ||
join_test.ts | ||
mod.ts | ||
parse_format_test.ts | ||
posix.ts | ||
README.md | ||
relative_test.ts | ||
resolve_test.ts | ||
separator.ts | ||
test.ts | ||
to_file_url_test.ts | ||
win32.ts | ||
zero_length_strings_test.ts |
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 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.