1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00
denoland-deno/std/path/README.md
tokiedokie 3d65177dbc
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00

22 lines
523 B
Markdown

# Deno Path Manipulation Libraries
Usage:
```ts
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.
```ts
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.
```