mirror of
https://github.com/denoland/deno.git
synced 2024-12-04 17:18:23 -05:00
36fde75d77
* Extended/updated documentation on code editor setup and plugins. * Moved documentation to the right file. * Fixed spelling errors in documentation and code. * Updated broken links. Co-authored-by: 迷渡 <justjavac@gmail.com> Co-authored-by: AlfieriChou <alfierichou@gmail.com> Co-authored-by: Anil Seervi <anil13112000@gmail.com Co-authored-by: Bert Belder <bertbelder@gmail.com> Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com> Co-authored-by: József Sallai <jozsef@sallai.me> Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de> Co-authored-by: Tommy May <tommymay37@gmail.com> Co-authored-by: Turbinya <wownucleos@gmail.com> Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
22 lines
496 B
Markdown
22 lines
496 B
Markdown
# Deno Path Manipulation Libraries
|
|
|
|
Usage:
|
|
|
|
```ts
|
|
import * as path from "https://deno.land/std/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/path/glob.ts";
|
|
|
|
globToRegExp("foo/**/*.json", {
|
|
flags: "g",
|
|
extended: true,
|
|
globstar: true,
|
|
}); // returns the regex to find all .json files in the folder foo
|
|
```
|