std/path
2021-03-15 13:09:18 +01:00
..
_constants.ts fix: Don't use JSDoc syntax for browser-compatibility headers (denoland/deno#8960) 2021-02-01 10:46:58 +00:00
_interface.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
_util.ts fix(path): enable and fix file URL tests (#804) 2021-03-15 13:09:18 +01:00
basename_test.ts Use dprint for internal formatting (denoland/deno#6682) 2021-02-01 10:46:58 +00:00
common_test.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
common.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
dirname_test.ts Use dprint for internal formatting (denoland/deno#6682) 2021-02-01 10:46:58 +00:00
extname_test.ts refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00
from_file_url_test.ts fix(path): enable and fix file URL tests (#804) 2021-03-15 13:09:18 +01:00
glob_test.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
glob.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
isabsolute_test.ts refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00
join_test.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
mod.ts fix: Don't use JSDoc syntax for browser-compatibility headers (denoland/deno#8960) 2021-02-01 10:46:58 +00:00
parse_format_test.ts feat(fmt): Sort named import and export specifiers (denoland/deno#7711) 2021-02-01 10:46:58 +00:00
posix.ts fix(path): enable and fix file URL tests (#804) 2021-03-15 13:09:18 +01:00
README.md docs(path): fix typo in globToRegExp docs (denoland/deno#8081) 2021-02-01 10:46:58 +00:00
relative_test.ts refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00
resolve_test.ts refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00
separator.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
test.ts update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
to_file_url_test.ts fix(path): enable and fix file URL tests (#804) 2021-03-15 13:09:18 +01:00
win32.ts fix(path): enable and fix file URL tests (#804) 2021-03-15 13:09:18 +01:00
zero_length_strings_test.ts refactor: Don't destructure the Deno namespace (denoland/deno#6268) 2021-02-01 10:46:58 +00:00

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.