This release is versions behind 1.1.5 — the latest version of @std/path.
Works with
•JSR Score100%•This package works with Cloudflare Workers, Deno, Browsers


Downloads81,650/wk
•Published3 years ago (0.210.0)
Utilities for working with file system paths
- @std/path
glob
- all symbols
- default
- basename
- common
- dirname
- extname
- format
- from_file_url
- glob
- glob_to_regexp
- is_absolute
- is_glob
- join
- join_globs
- normalize
- normalize_glob
- parse
- posix/basename
- posix/common
- posix/dirname
- posix/extname
- posix/format
- posix/from_file_url
- posix/glob
- posix/glob_to_regexp
- posix/is_absolute
- posix/is_glob
- posix/join
- posix/join_globs
- posix
- posix/normalize
- posix/normalize_glob
- posix/parse
- posix/relative
- posix/resolve
- posix/separator
- posix/to_file_url
- posix/to_namespaced_path
- relative
- resolve
- separator
- to_file_url
- to_namespaced_path
- windows/basename
- windows/common
- windows/dirname
- windows/extname
- windows/format
- windows/from_file_url
- windows/glob
- windows/glob_to_regexp
- windows/is_absolute
- windows/is_glob
- windows/join
- windows/join_globs
- windows
- windows/normalize
- windows/normalize_glob
- windows/parse
- windows/relative
- windows/resolve
- windows/separator
- windows/to_file_url
- windows/to_namespaced_path
Functions
f
globToRegExp(): RegExp
glob: string,
options?: GlobToRegExpOptions
Convert a glob string to a regular expression.
f
isGlob(str: string): boolean
Test whether the given string is a glob
f
joinGlobs(): string
globs: string[],
options?: GlobOptions
Like join(), but doesn't collapse "**/.." when globstar is true.
f
normalizeGlob(): string
glob: string,
options?: GlobOptions
Like normalize(), but doesn't collapse "**/.." when globstar is true.
Interfaces
I
Options for globToRegExp.
- caseInsensitive: boolean
Whether globstar should be case-insensitive.
- extended: boolean
Extended glob syntax. See https://www.linuxjournal.com/content/bash-extended-globbing.
- globstar: boolean
Globstar syntax. See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option. If false,
**is treated like*.
Type Aliases
T
GlobToRegExpOptions = GlobOptions & { os?: OSType; }
No documentation available