windmill-cli 1.586.4 → 1.587.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.js +4 -5
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.js +1 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.js +3 -4
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.js +36 -12
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.js +2 -1
- package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.js +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/io/0.225.2/read_all.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/console_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/basename.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/dirname.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/extname.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join.js +7 -7
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize.js +4 -5
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/basename.js +7 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/dirname.js +6 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/extname.js +8 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join.js +11 -8
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.js +2 -2
- package/esm/deps/jsr.io/@std/path/1.1.3/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/basename.js +7 -4
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/dirname.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/extname.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join.js +10 -7
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize.js +7 -6
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_chars.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_dumper_state.js +14 -5
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_loader_state.js +168 -150
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_schema.js +11 -6
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/bool.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/float.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/int.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/map.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/merge.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/nil.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/omap.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/pairs.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/regexp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/seq.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/set.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/str.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/timestamp.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/undefined.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_utils.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/parse.js +1 -1
- package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/stringify.js +1 -1
- package/esm/deps.js +5 -5
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/commands/init/init.js +3 -3
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.d.ts +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/types/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/dirname.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/extname.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
- package/types/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/dirname.d.ts +2 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/extname.d.ts +4 -4
- package/types/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join.d.ts +4 -6
- package/types/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/types.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/basename.d.ts +3 -4
- package/types/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
- package/types/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/extname.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
- package/types/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize.d.ts +3 -6
- package/types/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_dumper_state.d.ts +8 -1
- package/types/deps/jsr.io/@std/yaml/1.0.10/_dumper_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_loader_state.d.ts +14 -8
- package/types/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_schema.d.ts +7 -3
- package/types/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type.d.ts +16 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/yaml/1.0.10/stringify.d.ts.map +1 -0
- package/types/deps.d.ts +5 -5
- package/types/deps.d.ts.map +1 -1
- package/types/src/commands/init/init.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
- package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
- package/types/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
- package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_chars.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_dumper_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_loader_state.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_schema.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/binary.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/bool.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/float.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/int.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/map.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/merge.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/nil.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/omap.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/pairs.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/regexp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/seq.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/set.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/timestamp.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type/undefined.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_type.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/_utils.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/parse.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/yaml/1.0.5/stringify.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/concat.js +0 -0
- /package/esm/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/binary.js +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.5 → 1.0.6}/_types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fmt/{1.0.6 → 1.0.8}/colors.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.16 → 1.0.20}/walk.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/assert_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/basename.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/dirname.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/glob_to_reg_exp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/normalize_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/strip_trailing_separators.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/_common/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/is_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/posix/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/types.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/_util.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/constants.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/format.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/from_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/glob_to_regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/is_absolute.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/join_globs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/normalize_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/relative.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/resolve.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_file_url.d.ts +0 -0
- /package/types/deps/jsr.io/@std/path/{1.0.8 → 1.1.3}/windows/to_namespaced_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_chars.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/binary.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/bool.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/float.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/int.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/map.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/merge.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/nil.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/omap.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/pairs.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/regexp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/seq.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/set.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/str.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/timestamp.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_type/undefined.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/_utils.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/parse.d.ts +0 -0
- /package/types/deps/jsr.io/@std/yaml/{1.0.5 → 1.0.10}/stringify.d.ts +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
// Copyright the Browserify authors. MIT License.
|
|
3
|
+
// Ported mostly from https://github.com/browserify/path-browserify/
|
|
4
|
+
// This module is browser compatible.
|
|
5
|
+
/**
|
|
6
|
+
* Utilities for working with OS-specific file paths.
|
|
7
|
+
*
|
|
8
|
+
* Functions from this module will automatically switch to support the path style
|
|
9
|
+
* of the current OS, either `windows` for Microsoft Windows, or `posix` for
|
|
10
|
+
* every other operating system, eg. Linux, MacOS, BSD etc.
|
|
11
|
+
*
|
|
12
|
+
* To use functions for a specific path style regardless of the current OS
|
|
13
|
+
* import the modules from the platform sub directory instead.
|
|
14
|
+
*
|
|
15
|
+
* ## Basic Path Operations
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import * as path from "@std/path";
|
|
19
|
+
* import { assertEquals } from "@std/assert";
|
|
20
|
+
*
|
|
21
|
+
* // Get components of a path
|
|
22
|
+
* if (Deno.build.os === "windows") {
|
|
23
|
+
* assertEquals(path.basename("C:\\Users\\user\\file.txt"), "file.txt");
|
|
24
|
+
* assertEquals(path.dirname("C:\\Users\\user\\file.txt"), "C:\\Users\\user");
|
|
25
|
+
* assertEquals(path.extname("C:\\Users\\user\\file.txt"), ".txt");
|
|
26
|
+
* } else {
|
|
27
|
+
* assertEquals(path.basename("/home/user/file.txt"), "file.txt");
|
|
28
|
+
* assertEquals(path.dirname("/home/user/file.txt"), "/home/user");
|
|
29
|
+
* assertEquals(path.extname("/home/user/file.txt"), ".txt");
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* // Join path segments
|
|
33
|
+
* if (Deno.build.os === "windows") {
|
|
34
|
+
* assertEquals(path.join("C:\\", "Users", "docs", "file.txt"), "C:\\Users\\docs\\file.txt");
|
|
35
|
+
* } else {
|
|
36
|
+
* assertEquals(path.join("/home", "user", "docs", "file.txt"), "/home/user/docs/file.txt");
|
|
37
|
+
* }
|
|
38
|
+
*
|
|
39
|
+
* // Normalize a path
|
|
40
|
+
* if (Deno.build.os === "windows") {
|
|
41
|
+
* assertEquals(path.normalize("C:\\Users\\user\\..\\temp\\.\\file.txt"), "C:\\Users\\temp\\file.txt");
|
|
42
|
+
* } else {
|
|
43
|
+
* assertEquals(path.normalize("/home/user/../temp/./file.txt"), "/home/temp/file.txt");
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* // Resolve absolute path
|
|
47
|
+
* if (Deno.build.os === "windows") {
|
|
48
|
+
* const resolved = path.resolve("C:\\foo", "docs", "file.txt");
|
|
49
|
+
* assertEquals(resolved, "C:\\foo\\docs\\file.txt");
|
|
50
|
+
* assertEquals(path.isAbsolute(resolved), true);
|
|
51
|
+
* } else {
|
|
52
|
+
* const resolved = path.resolve("/foo", "docs", "file.txt");
|
|
53
|
+
* assertEquals(resolved, "/foo/docs/file.txt");
|
|
54
|
+
* assertEquals(path.isAbsolute(resolved), true);
|
|
55
|
+
* }
|
|
56
|
+
*
|
|
57
|
+
* // Get relative path
|
|
58
|
+
* if (Deno.build.os === "windows") {
|
|
59
|
+
* assertEquals(path.relative("C:\\Users", "C:\\Users\\docs\\file.txt"), "docs\\file.txt");
|
|
60
|
+
* assertEquals(path.relative("C:\\Users", "D:\\Programs"), "D:\\Programs");
|
|
61
|
+
* } else {
|
|
62
|
+
* assertEquals(path.relative("/home/user", "/home/user/docs/file.txt"), "docs/file.txt");
|
|
63
|
+
* assertEquals(path.relative("/home/user", "/var/data"), "../../var/data");
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ## Path Parsing and Formatting
|
|
68
|
+
*
|
|
69
|
+
* ```ts
|
|
70
|
+
* import * as path from "@std/path";
|
|
71
|
+
* import { assertEquals } from "@std/assert";
|
|
72
|
+
*
|
|
73
|
+
* if (Deno.build.os === "windows") {
|
|
74
|
+
* const parsedWindows = path.parse("C:\\Users\\user\\file.txt");
|
|
75
|
+
* assertEquals(parsedWindows.root, "C:\\");
|
|
76
|
+
* assertEquals(parsedWindows.dir, "C:\\Users\\user");
|
|
77
|
+
* assertEquals(parsedWindows.base, "file.txt");
|
|
78
|
+
* assertEquals(parsedWindows.ext, ".txt");
|
|
79
|
+
* assertEquals(parsedWindows.name, "file");
|
|
80
|
+
*
|
|
81
|
+
* // Format path from components (Windows)
|
|
82
|
+
* assertEquals(
|
|
83
|
+
* path.format({ dir: "C:\\Users\\user", base: "file.txt" }),
|
|
84
|
+
* "C:\\Users\\user\\file.txt"
|
|
85
|
+
* );
|
|
86
|
+
* } else {
|
|
87
|
+
* const parsedPosix = path.parse("/home/user/file.txt");
|
|
88
|
+
* assertEquals(parsedPosix.root, "/");
|
|
89
|
+
* assertEquals(parsedPosix.dir, "/home/user");
|
|
90
|
+
* assertEquals(parsedPosix.base, "file.txt");
|
|
91
|
+
* assertEquals(parsedPosix.ext, ".txt");
|
|
92
|
+
* assertEquals(parsedPosix.name, "file");
|
|
93
|
+
*
|
|
94
|
+
* // Format path from components (POSIX)
|
|
95
|
+
* assertEquals(
|
|
96
|
+
* path.format({ dir: "/home/user", base: "file.txt" }),
|
|
97
|
+
* "/home/user/file.txt"
|
|
98
|
+
* );
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* ## URL Conversion
|
|
103
|
+
*
|
|
104
|
+
* ```ts
|
|
105
|
+
* import * as path from "@std/path";
|
|
106
|
+
* import { assertEquals } from "@std/assert";
|
|
107
|
+
*
|
|
108
|
+
* // Convert between file URLs and paths
|
|
109
|
+
* if (Deno.build.os === "windows") {
|
|
110
|
+
* assertEquals(path.fromFileUrl("file:///C:/Users/user/file.txt"), "C:\\Users\\user\\file.txt");
|
|
111
|
+
* assertEquals(path.toFileUrl("C:\\Users\\user\\file.txt").href, "file:///C:/Users/user/file.txt");
|
|
112
|
+
* } else {
|
|
113
|
+
* assertEquals(path.fromFileUrl("file:///home/user/file.txt"), "/home/user/file.txt");
|
|
114
|
+
* assertEquals(path.toFileUrl("/home/user/file.txt").href, "file:///home/user/file.txt");
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* ## Path Properties
|
|
119
|
+
*
|
|
120
|
+
* ```ts
|
|
121
|
+
* import * as path from "@std/path";
|
|
122
|
+
* import { assertEquals } from "@std/assert";
|
|
123
|
+
*
|
|
124
|
+
* // Check if path is absolute
|
|
125
|
+
* if (Deno.build.os === "windows") {
|
|
126
|
+
* assertEquals(path.isAbsolute("C:\\Users"), true);
|
|
127
|
+
* assertEquals(path.isAbsolute("\\\\Server\\share"), true);
|
|
128
|
+
* assertEquals(path.isAbsolute("C:relative\\path"), false);
|
|
129
|
+
* assertEquals(path.isAbsolute("..\\relative\\path"), false);
|
|
130
|
+
* } else {
|
|
131
|
+
* assertEquals(path.isAbsolute("/home/user"), true);
|
|
132
|
+
* assertEquals(path.isAbsolute("./relative/path"), false);
|
|
133
|
+
* assertEquals(path.isAbsolute("../relative/path"), false);
|
|
134
|
+
* }
|
|
135
|
+
*
|
|
136
|
+
* // Convert to namespaced path (Windows-specific)
|
|
137
|
+
* if (Deno.build.os === "windows") {
|
|
138
|
+
* assertEquals(path.toNamespacedPath("C:\\Users\\file.txt"), "\\\\?\\C:\\Users\\file.txt");
|
|
139
|
+
* assertEquals(path.toNamespacedPath("\\\\server\\share\\file.txt"), "\\\\?\\UNC\\server\\share\\file.txt");
|
|
140
|
+
* } else {
|
|
141
|
+
* // On POSIX, toNamespacedPath returns the path unchanged
|
|
142
|
+
* assertEquals(path.toNamespacedPath("/home/user/file.txt"), "/home/user/file.txt");
|
|
143
|
+
* }
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* ## Glob Pattern Utilities
|
|
147
|
+
*
|
|
148
|
+
* ```ts
|
|
149
|
+
* import * as path from "@std/path";
|
|
150
|
+
* import { assertEquals } from "@std/assert";
|
|
151
|
+
*
|
|
152
|
+
* // Check if a string is a glob pattern
|
|
153
|
+
* assertEquals(path.isGlob("*.txt"), true);
|
|
154
|
+
*
|
|
155
|
+
* // Convert glob pattern to RegExp
|
|
156
|
+
* const pattern = path.globToRegExp("*.txt");
|
|
157
|
+
* assertEquals(pattern.test("file.txt"), true);
|
|
158
|
+
*
|
|
159
|
+
* // Join multiple glob patterns
|
|
160
|
+
* if (Deno.build.os === "windows") {
|
|
161
|
+
* assertEquals(path.joinGlobs(["src", "**\\*.ts"]), "src\\**\\*.ts");
|
|
162
|
+
* } else {
|
|
163
|
+
* assertEquals(path.joinGlobs(["src", "**\/*.ts"]), "src/**\/*.ts");
|
|
164
|
+
* }
|
|
165
|
+
*
|
|
166
|
+
* // Normalize a glob pattern
|
|
167
|
+
* if (Deno.build.os === "windows") {
|
|
168
|
+
* assertEquals(path.normalizeGlob("src\\..\\**\\*.ts"), "**\\*.ts");
|
|
169
|
+
* } else {
|
|
170
|
+
* assertEquals(path.normalizeGlob("src/../**\/*.ts"), "**\/*.ts");
|
|
171
|
+
* }
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* For POSIX-specific functions:
|
|
175
|
+
*
|
|
176
|
+
* ```ts
|
|
177
|
+
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
|
178
|
+
* import { assertEquals } from "@std/assert";
|
|
179
|
+
*
|
|
180
|
+
* assertEquals(fromFileUrl("file:///home/foo"), "/home/foo");
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* For Windows-specific functions:
|
|
184
|
+
*
|
|
185
|
+
* ```ts
|
|
186
|
+
* import { fromFileUrl } from "@std/path/windows/from-file-url";
|
|
187
|
+
* import { assertEquals } from "@std/assert";
|
|
188
|
+
*
|
|
189
|
+
* assertEquals(fromFileUrl("file:///home/foo"), "\\home\\foo");
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* Functions for working with URLs can be found in
|
|
193
|
+
* {@link ./doc/posix/~ | @std/path/posix}.
|
|
194
|
+
*
|
|
195
|
+
* @module
|
|
196
|
+
*/
|
|
197
|
+
export * from "./basename.js";
|
|
198
|
+
export * from "./constants.js";
|
|
199
|
+
export * from "./dirname.js";
|
|
200
|
+
export * from "./extname.js";
|
|
201
|
+
export * from "./format.js";
|
|
202
|
+
export * from "./from_file_url.js";
|
|
203
|
+
export * from "./is_absolute.js";
|
|
204
|
+
export * from "./join.js";
|
|
205
|
+
export * from "./normalize.js";
|
|
206
|
+
export * from "./parse.js";
|
|
207
|
+
export * from "./relative.js";
|
|
208
|
+
export * from "./resolve.js";
|
|
209
|
+
export * from "./to_file_url.js";
|
|
210
|
+
export * from "./to_namespaced_path.js";
|
|
211
|
+
export * from "./common.js";
|
|
212
|
+
export * from "./types.js";
|
|
213
|
+
export * from "./glob_to_regexp.js";
|
|
214
|
+
export * from "./is_glob.js";
|
|
215
|
+
export * from "./join_globs.js";
|
|
216
|
+
export * from "./normalize_glob.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { normalize as posixNormalize } from "./posix/normalize.js";
|
|
5
5
|
import { normalize as windowsNormalize } from "./windows/normalize.js";
|
|
6
6
|
/**
|
|
@@ -17,14 +17,13 @@ import { normalize as windowsNormalize } from "./windows/normalize.js";
|
|
|
17
17
|
*
|
|
18
18
|
* if (Deno.build.os === "windows") {
|
|
19
19
|
* assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
|
|
20
|
+
* assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
|
|
20
21
|
* } else {
|
|
21
22
|
* assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
|
|
23
|
+
* assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
|
|
22
24
|
* }
|
|
23
25
|
* ```
|
|
24
26
|
*
|
|
25
|
-
* Note: If you are working with file URLs,
|
|
26
|
-
* use the new version of `normalize` from `@std/path/unstable-normalize`.
|
|
27
|
-
*
|
|
28
27
|
* @param path Path to be normalized
|
|
29
28
|
* @returns The normalized path.
|
|
30
29
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
|
|
5
5
|
import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { parse as posixParse } from "./posix/parse.js";
|
|
5
5
|
import { parse as windowsParse } from "./windows/parse.js";
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
3
|
// Ported from https://github.com/browserify/path-browserify/
|
|
4
4
|
// This module is browser compatible.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
4
5
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
5
6
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
7
|
/**
|
|
@@ -15,6 +16,8 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
15
16
|
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
16
17
|
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
17
18
|
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
19
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
20
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
|
|
18
21
|
* ```
|
|
19
22
|
*
|
|
20
23
|
* @example Working with URLs
|
|
@@ -34,14 +37,14 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
34
37
|
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
|
35
38
|
* ```
|
|
36
39
|
*
|
|
37
|
-
* Note: If you are working with file URLs,
|
|
38
|
-
* use the new version of `basename` from `@std/path/posix/unstable-basename`.
|
|
39
|
-
*
|
|
40
40
|
* @param path The path to extract the name from.
|
|
41
41
|
* @param suffix The suffix to remove from extracted name.
|
|
42
42
|
* @returns The extracted name.
|
|
43
43
|
*/
|
|
44
44
|
export function basename(path, suffix = "") {
|
|
45
|
+
if (path instanceof URL) {
|
|
46
|
+
path = fromFileUrl(path);
|
|
47
|
+
}
|
|
45
48
|
assertArgs(path, suffix);
|
|
46
49
|
const lastSegment = lastPathSegment(path, isPosixPathSeparator);
|
|
47
50
|
const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/dirname.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
6
7
|
/**
|
|
7
8
|
* Return the directory path of a `path`.
|
|
8
9
|
*
|
|
@@ -14,6 +15,7 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
14
15
|
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
|
|
15
16
|
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
|
16
17
|
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
18
|
+
* assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
|
|
17
19
|
* ```
|
|
18
20
|
*
|
|
19
21
|
* @example Working with URLs
|
|
@@ -27,13 +29,13 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
27
29
|
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
|
28
30
|
* ```
|
|
29
31
|
*
|
|
30
|
-
* Note: If you are working with file URLs,
|
|
31
|
-
* use the new version of `dirname` from `@std/path/posix/unstable-dirname`.
|
|
32
|
-
*
|
|
33
32
|
* @param path The path to get the directory from.
|
|
34
33
|
* @returns The directory path.
|
|
35
34
|
*/
|
|
36
35
|
export function dirname(path) {
|
|
36
|
+
if (path instanceof URL) {
|
|
37
|
+
path = fromFileUrl(path);
|
|
38
|
+
}
|
|
37
39
|
assertArg(path);
|
|
38
40
|
let end = -1;
|
|
39
41
|
let matchedNonSeparator = false;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { assertPath } from "../_common/assert_path.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
6
7
|
/**
|
|
7
8
|
* Return the extension of the `path` with leading period.
|
|
8
9
|
*
|
|
@@ -14,6 +15,9 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
14
15
|
* assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
|
|
15
16
|
* assertEquals(extname("/home/user/Documents/"), "");
|
|
16
17
|
* assertEquals(extname("/home/user/Documents/image.png"), ".png");
|
|
18
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
|
|
19
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
|
|
20
|
+
* assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
|
|
17
21
|
* ```
|
|
18
22
|
*
|
|
19
23
|
* @example Working with URLs
|
|
@@ -32,13 +36,13 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
32
36
|
* assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
|
|
33
37
|
* ```
|
|
34
38
|
*
|
|
35
|
-
* Note: If you are working with file URLs,
|
|
36
|
-
* use the new version of `extname` from `@std/path/posix/unstable-extname`.
|
|
37
|
-
*
|
|
38
39
|
* @param path The path to get the extension from.
|
|
39
40
|
* @returns The extension (ex. for `file.ts` returns `.ts`).
|
|
40
41
|
*/
|
|
41
42
|
export function extname(path) {
|
|
43
|
+
if (path instanceof URL) {
|
|
44
|
+
path = fromFileUrl(path);
|
|
45
|
+
}
|
|
42
46
|
assertPath(path);
|
|
43
47
|
let startDot = -1;
|
|
44
48
|
let startPart = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertPath } from "../_common/assert_path.js";
|
|
4
4
|
import { isPosixPathSeparator } from "./_util.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertPath } from "../_common/assert_path.js";
|
|
4
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
4
5
|
import { normalize } from "./normalize.js";
|
|
5
6
|
/**
|
|
6
7
|
* Join all given a sequence of `paths`,then normalizes the resulting path.
|
|
@@ -10,8 +11,8 @@ import { normalize } from "./normalize.js";
|
|
|
10
11
|
* import { join } from "@std/path/posix/join";
|
|
11
12
|
* import { assertEquals } from "@std/assert";
|
|
12
13
|
*
|
|
13
|
-
*
|
|
14
|
-
* assertEquals(
|
|
14
|
+
* assertEquals(join("/foo", "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
15
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* @example Working with URLs
|
|
@@ -27,15 +28,17 @@ import { normalize } from "./normalize.js";
|
|
|
27
28
|
* assertEquals(url.href, "https://deno.land/std/path/mod.ts");
|
|
28
29
|
* ```
|
|
29
30
|
*
|
|
30
|
-
*
|
|
31
|
-
* use the new version of `join` from `@std/path/posix/unstable-join`.
|
|
32
|
-
*
|
|
31
|
+
* @param path The path to join. This can be string or file URL.
|
|
33
32
|
* @param paths The paths to join.
|
|
34
33
|
* @returns The joined path.
|
|
35
34
|
*/
|
|
36
|
-
export function join(...paths) {
|
|
37
|
-
if (
|
|
35
|
+
export function join(path, ...paths) {
|
|
36
|
+
if (path === undefined)
|
|
38
37
|
return ".";
|
|
38
|
+
if (path instanceof URL) {
|
|
39
|
+
path = fromFileUrl(path);
|
|
40
|
+
}
|
|
41
|
+
paths = path ? [path, ...paths] : paths;
|
|
39
42
|
paths.forEach((path) => assertPath(path));
|
|
40
43
|
const joined = paths.filter((path) => path.length > 0).join("/");
|
|
41
44
|
return joined === "" ? "." : normalize(joined);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArg } from "../_common/normalize.js";
|
|
4
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
6
7
|
/**
|
|
7
8
|
* Normalize the `path`, resolving `'..'` and `'.'` segments.
|
|
8
9
|
* Note that resolving these segments does not necessarily mean that all will be eliminated.
|
|
@@ -13,8 +14,8 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
13
14
|
* import { normalize } from "@std/path/posix/normalize";
|
|
14
15
|
* import { assertEquals } from "@std/assert";
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
* assertEquals(
|
|
17
|
+
* assertEquals(normalize("/foo/bar//baz/asdf/quux/.."), "/foo/bar/baz/asdf");
|
|
18
|
+
* assertEquals(normalize(new URL("file:///foo/bar//baz/asdf/quux/..")), "/foo/bar/baz/asdf/");
|
|
18
19
|
* ```
|
|
19
20
|
*
|
|
20
21
|
* @example Working with URLs
|
|
@@ -35,13 +36,13 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
35
36
|
* assertEquals(url.href, "https://deno.land/std/async/retry.ts");
|
|
36
37
|
* ```
|
|
37
38
|
*
|
|
38
|
-
* Note: If you are working with file URLs,
|
|
39
|
-
* use the new version of `normalize` from `@std/path/posix/unstable-normalize`.
|
|
40
|
-
*
|
|
41
39
|
* @param path The path to normalize.
|
|
42
40
|
* @returns The normalized path.
|
|
43
41
|
*/
|
|
44
42
|
export function normalize(path) {
|
|
43
|
+
if (path instanceof URL) {
|
|
44
|
+
path = fromFileUrl(path);
|
|
45
|
+
}
|
|
45
46
|
assertArg(path);
|
|
46
47
|
const isAbsolute = isPosixPathSeparator(path.charCodeAt(0));
|
|
47
48
|
const trailingSeparator = isPosixPathSeparator(path.charCodeAt(path.length - 1));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { CHAR_DOT } from "../_common/constants.js";
|
|
4
4
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
4
4
|
import { normalizeString } from "../_common/normalize_string.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { encodeWhitespace } from "../_common/to_file_url.js";
|
|
4
4
|
import { isAbsolute } from "./is_absolute.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { relative as posixRelative } from "./posix/relative.js";
|
|
5
5
|
import { relative as windowsRelative } from "./windows/relative.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { resolve as posixResolve } from "./posix/resolve.js";
|
|
5
5
|
import { resolve as windowsResolve } from "./windows/resolve.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { toFileUrl as posixToFileUrl } from "./posix/to_file_url.js";
|
|
5
5
|
import { toFileUrl as windowsToFileUrl } from "./windows/to_file_url.js";
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { isWindows } from "
|
|
3
|
+
import { isWindows } from "../../internal/1.0.12/os.js";
|
|
4
4
|
import { toNamespacedPath as posixToNamespacedPath } from "./posix/to_namespaced_path.js";
|
|
5
5
|
import { toNamespacedPath as windowsToNamespacedPath } from "./windows/to_namespaced_path.js";
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// Copyright the Browserify authors. MIT License.
|
|
3
3
|
// Ported from https://github.com/browserify/path-browserify/
|
|
4
4
|
// This module is browser compatible.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
|
|
4
4
|
import { CHAR_COLON } from "../_common/constants.js";
|
|
5
5
|
import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
|
|
6
6
|
import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
7
|
+
import { fromFileUrl } from "./from_file_url.js";
|
|
7
8
|
/**
|
|
8
9
|
* Return the last portion of a `path`.
|
|
9
10
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
@@ -16,16 +17,18 @@ import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
|
16
17
|
* assertEquals(basename("C:\\user\\Documents\\"), "Documents");
|
|
17
18
|
* assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
|
|
18
19
|
* assertEquals(basename("C:\\user\\Documents\\image.png", ".png"), "image");
|
|
20
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
|
|
21
|
+
* assertEquals(basename(new URL("file:///C:/user/Documents/image.png"), ".png"), "image");
|
|
19
22
|
* ```
|
|
20
23
|
*
|
|
21
|
-
* Note: If you are working with file URLs,
|
|
22
|
-
* use the new version of `basename` from `@std/path/windows/unstable-basename`.
|
|
23
|
-
*
|
|
24
24
|
* @param path The path to extract the name from.
|
|
25
25
|
* @param suffix The suffix to remove from extracted name.
|
|
26
26
|
* @returns The extracted name.
|
|
27
27
|
*/
|
|
28
28
|
export function basename(path, suffix = "") {
|
|
29
|
+
if (path instanceof URL) {
|
|
30
|
+
path = fromFileUrl(path);
|
|
31
|
+
}
|
|
29
32
|
assertArgs(path, suffix);
|
|
30
33
|
// Check for a drive letter prefix so as not to mistake the following
|
|
31
34
|
// path separator as an extra separator at the end of the path that can be
|