open-lisp 2026.306.224346
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/LICENSE +19 -0
- package/README.md +1 -0
- package/esm/_dnt.polyfills.d.ts +8 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +110 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/_dnt.test_shims.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +34 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +18 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.js +313 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +87 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +102 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +90 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +61 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +156 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.js +67 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.js +271 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +442 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.js +142 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.js +846 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
- package/esm/mod.d.ts +57 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +145 -0
- package/esm/mod_test.d.ts +2 -0
- package/esm/mod_test.d.ts.map +1 -0
- package/esm/package.json +3 -0
- package/esm/src/lisp1.d.ts +4 -0
- package/esm/src/lisp1.d.ts.map +1 -0
- package/esm/src/lisp1.js +660 -0
- package/esm/src/oml2ast.d.ts +4 -0
- package/esm/src/oml2ast.d.ts.map +1 -0
- package/esm/src/oml2ast.js +258 -0
- package/esm/src/omlcommon.d.ts +17 -0
- package/esm/src/omlcommon.d.ts.map +1 -0
- package/esm/src/omlcommon.js +128 -0
- package/package.json +33 -0
- package/script/_dnt.polyfills.d.ts +8 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +111 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/_dnt.test_shims.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/almost_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/array_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/fail.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/greater.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/less.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/less_or_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/object_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/rejects.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/string_includes.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/throws.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/unimplemented.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.19/unreachable.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +71 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +21 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.js +350 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +124 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +139 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +127 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +98 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +193 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.js +308 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +479 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.js +179 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.js +883 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +238 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +67 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +95 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +116 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +44 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +190 -0
- package/script/mod.d.ts +57 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +199 -0
- package/script/mod_test.d.ts +2 -0
- package/script/mod_test.d.ts.map +1 -0
- package/script/package.json +3 -0
- package/script/src/lisp1.d.ts +4 -0
- package/script/src/lisp1.d.ts.map +1 -0
- package/script/src/lisp1.js +701 -0
- package/script/src/oml2ast.d.ts +4 -0
- package/script/src/oml2ast.d.ts.map +1 -0
- package/script/src/oml2ast.js +263 -0
- package/script/src/omlcommon.d.ts +17 -0
- package/script/src/omlcommon.d.ts.map +1 -0
- package/script/src/omlcommon.js +132 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Joins a sequence of paths, then normalizes the resulting path.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { join } from "@std/path/join";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* if (Deno.build.os === "windows") {
|
|
10
|
+
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
|
|
11
|
+
* assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
|
|
12
|
+
* } else {
|
|
13
|
+
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
|
|
14
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param path The path to join. This can be string or file URL.
|
|
19
|
+
* @param paths Paths to be joined and normalized.
|
|
20
|
+
* @returns The joined and normalized path.
|
|
21
|
+
*/
|
|
22
|
+
export declare function join(path: string | URL, ...paths: string[]): string;
|
|
23
|
+
//# sourceMappingURL=join.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.join = join;
|
|
6
|
+
const os_js_1 = require("../../internal/1.0.12/os.js");
|
|
7
|
+
const join_js_1 = require("./posix/join.js");
|
|
8
|
+
const join_js_2 = require("./windows/join.js");
|
|
9
|
+
/**
|
|
10
|
+
* Joins a sequence of paths, then normalizes the resulting path.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { join } from "@std/path/join";
|
|
15
|
+
* import { assertEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* if (Deno.build.os === "windows") {
|
|
18
|
+
* assertEquals(join("C:\\foo", "bar", "baz\\quux", "garply", ".."), "C:\\foo\\bar\\baz\\quux");
|
|
19
|
+
* assertEquals(join(new URL("file:///C:/foo"), "bar", "baz/asdf", "quux", ".."), "C:\\foo\\bar\\baz\\asdf");
|
|
20
|
+
* } else {
|
|
21
|
+
* assertEquals(join("/foo", "bar", "baz/quux", "garply", ".."), "/foo/bar/baz/quux");
|
|
22
|
+
* assertEquals(join(new URL("file:///foo"), "bar", "baz/asdf", "quux", ".."), "/foo/bar/baz/asdf");
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param path The path to join. This can be string or file URL.
|
|
27
|
+
* @param paths Paths to be joined and normalized.
|
|
28
|
+
* @returns The joined and normalized path.
|
|
29
|
+
*/
|
|
30
|
+
function join(path, ...paths) {
|
|
31
|
+
return os_js_1.isWindows ? (0, join_js_2.join)(path, ...paths) : (0, join_js_1.join)(path, ...paths);
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
|
|
2
|
+
export type { GlobOptions };
|
|
3
|
+
/**
|
|
4
|
+
* Joins a sequence of globs, then normalizes the resulting glob.
|
|
5
|
+
*
|
|
6
|
+
* Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
|
|
7
|
+
* doesn't collapse `**\/..` when `globstar` is true.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { joinGlobs } from "@std/path/join-globs";
|
|
12
|
+
* import { assertEquals } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* if (Deno.build.os === "windows") {
|
|
15
|
+
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
|
|
16
|
+
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
|
|
17
|
+
* } else {
|
|
18
|
+
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
|
|
19
|
+
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param globs Globs to be joined and normalized.
|
|
24
|
+
* @param options Glob options.
|
|
25
|
+
* @returns The joined and normalized glob string.
|
|
26
|
+
*/
|
|
27
|
+
export declare function joinGlobs(globs: string[], options?: GlobOptions): string;
|
|
28
|
+
//# sourceMappingURL=join_globs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join_globs.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/join_globs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.joinGlobs = joinGlobs;
|
|
6
|
+
const os_js_1 = require("../../internal/1.0.12/os.js");
|
|
7
|
+
const join_globs_js_1 = require("./posix/join_globs.js");
|
|
8
|
+
const join_globs_js_2 = require("./windows/join_globs.js");
|
|
9
|
+
/**
|
|
10
|
+
* Joins a sequence of globs, then normalizes the resulting glob.
|
|
11
|
+
*
|
|
12
|
+
* Behaves like {@linkcode https://jsr.io/@std/path/doc/~/join | join()}, but
|
|
13
|
+
* doesn't collapse `**\/..` when `globstar` is true.
|
|
14
|
+
*
|
|
15
|
+
* @example Usage
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { joinGlobs } from "@std/path/join-globs";
|
|
18
|
+
* import { assertEquals } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* if (Deno.build.os === "windows") {
|
|
21
|
+
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo\\baz");
|
|
22
|
+
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo\\**\\baz");
|
|
23
|
+
* } else {
|
|
24
|
+
* assertEquals(joinGlobs(["foo", "bar", "..", "baz"]), "foo/baz");
|
|
25
|
+
* assertEquals(joinGlobs(["foo", "**", "bar", "..", "baz"], { globstar: true }), "foo/**\/baz");
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @param globs Globs to be joined and normalized.
|
|
30
|
+
* @param options Glob options.
|
|
31
|
+
* @returns The joined and normalized glob string.
|
|
32
|
+
*/
|
|
33
|
+
function joinGlobs(globs, options = {}) {
|
|
34
|
+
return os_js_1.isWindows
|
|
35
|
+
? (0, join_globs_js_2.joinGlobs)(globs, options)
|
|
36
|
+
: (0, join_globs_js_1.joinGlobs)(globs, options);
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize the path, resolving `'..'` and `'.'` segments.
|
|
3
|
+
*
|
|
4
|
+
* Note: Resolving these segments does not necessarily mean that all will be
|
|
5
|
+
* eliminated. A `'..'` at the top-level will be preserved, and an empty path is
|
|
6
|
+
* canonically `'.'`.
|
|
7
|
+
*
|
|
8
|
+
* @example Usage
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { normalize } from "@std/path/normalize";
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* if (Deno.build.os === "windows") {
|
|
14
|
+
* assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
|
|
15
|
+
* assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
|
|
16
|
+
* } else {
|
|
17
|
+
* assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
|
|
18
|
+
* assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @param path Path to be normalized
|
|
23
|
+
* @returns The normalized path.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalize(path: string | URL): string;
|
|
26
|
+
//# sourceMappingURL=normalize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/normalize.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.normalize = normalize;
|
|
6
|
+
const os_js_1 = require("../../internal/1.0.12/os.js");
|
|
7
|
+
const normalize_js_1 = require("./posix/normalize.js");
|
|
8
|
+
const normalize_js_2 = require("./windows/normalize.js");
|
|
9
|
+
/**
|
|
10
|
+
* Normalize the path, resolving `'..'` and `'.'` segments.
|
|
11
|
+
*
|
|
12
|
+
* Note: Resolving these segments does not necessarily mean that all will be
|
|
13
|
+
* eliminated. A `'..'` at the top-level will be preserved, and an empty path is
|
|
14
|
+
* canonically `'.'`.
|
|
15
|
+
*
|
|
16
|
+
* @example Usage
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { normalize } from "@std/path/normalize";
|
|
19
|
+
* import { assertEquals } from "@std/assert";
|
|
20
|
+
*
|
|
21
|
+
* if (Deno.build.os === "windows") {
|
|
22
|
+
* assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
|
|
23
|
+
* assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
|
|
24
|
+
* } else {
|
|
25
|
+
* assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
|
|
26
|
+
* assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @param path Path to be normalized
|
|
31
|
+
* @returns The normalized path.
|
|
32
|
+
*/
|
|
33
|
+
function normalize(path) {
|
|
34
|
+
return os_js_1.isWindows ? (0, normalize_js_2.normalize)(path) : (0, normalize_js_1.normalize)(path);
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// Copyright the Browserify authors. MIT License.
|
|
4
|
+
// Ported from https://github.com/browserify/path-browserify/
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.isPosixPathSeparator = isPosixPathSeparator;
|
|
8
|
+
const constants_js_1 = require("../_common/constants.js");
|
|
9
|
+
function isPosixPathSeparator(code) {
|
|
10
|
+
return code === constants_js_1.CHAR_FORWARD_SLASH;
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the last portion of a `path`.
|
|
3
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { basename } from "@std/path/posix/basename";
|
|
8
|
+
* import { assertEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
11
|
+
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
12
|
+
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
13
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
14
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @example Working with URLs
|
|
18
|
+
*
|
|
19
|
+
* Note: This function doesn't automatically strip hash and query parts from
|
|
20
|
+
* URLs. If your URL contains a hash or query, remove them before passing the
|
|
21
|
+
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
|
22
|
+
* and setting the `hash` and `search` properties to empty strings.
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* import { basename } from "@std/path/posix/basename";
|
|
26
|
+
* import { assertEquals } from "@std/assert";
|
|
27
|
+
*
|
|
28
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
|
|
29
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
|
|
30
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
|
|
31
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @param path The path to extract the name from.
|
|
35
|
+
* @param suffix The suffix to remove from extracted name.
|
|
36
|
+
* @returns The extracted name.
|
|
37
|
+
*/
|
|
38
|
+
export declare function basename(path: string | URL, suffix?: string): string;
|
|
39
|
+
//# sourceMappingURL=basename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAYhE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.basename = basename;
|
|
6
|
+
const basename_js_1 = require("../_common/basename.js");
|
|
7
|
+
const from_file_url_js_1 = require("./from_file_url.js");
|
|
8
|
+
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
9
|
+
const _util_js_1 = require("./_util.js");
|
|
10
|
+
/**
|
|
11
|
+
* Return the last portion of a `path`.
|
|
12
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
13
|
+
*
|
|
14
|
+
* @example Usage
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { basename } from "@std/path/posix/basename";
|
|
17
|
+
* import { assertEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* assertEquals(basename("/home/user/Documents/"), "Documents");
|
|
20
|
+
* assertEquals(basename("/home/user/Documents/image.png"), "image.png");
|
|
21
|
+
* assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
|
|
22
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
|
|
23
|
+
* assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @example Working with URLs
|
|
27
|
+
*
|
|
28
|
+
* Note: This function doesn't automatically strip hash and query parts from
|
|
29
|
+
* URLs. If your URL contains a hash or query, remove them before passing the
|
|
30
|
+
* URL to the function. This can be done by passing the URL to `new URL(url)`,
|
|
31
|
+
* and setting the `hash` and `search` properties to empty strings.
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { basename } from "@std/path/posix/basename";
|
|
35
|
+
* import { assertEquals } from "@std/assert";
|
|
36
|
+
*
|
|
37
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
|
|
38
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
|
|
39
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
|
|
40
|
+
* assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param path The path to extract the name from.
|
|
44
|
+
* @param suffix The suffix to remove from extracted name.
|
|
45
|
+
* @returns The extracted name.
|
|
46
|
+
*/
|
|
47
|
+
function basename(path, suffix = "") {
|
|
48
|
+
if (path instanceof URL) {
|
|
49
|
+
path = (0, from_file_url_js_1.fromFileUrl)(path);
|
|
50
|
+
}
|
|
51
|
+
(0, basename_js_1.assertArgs)(path, suffix);
|
|
52
|
+
const lastSegment = (0, basename_js_1.lastPathSegment)(path, _util_js_1.isPosixPathSeparator);
|
|
53
|
+
const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPosixPathSeparator);
|
|
54
|
+
return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The character used to separate entries in the PATH environment variable.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DELIMITER: ":";
|
|
5
|
+
/**
|
|
6
|
+
* The character used to separate components of a file path.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SEPARATOR: "/";
|
|
9
|
+
/**
|
|
10
|
+
* A regular expression that matches one or more path separators.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SEPARATOR_PATTERN: RegExp;
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAG,GAAY,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SEPARATOR_PATTERN = exports.SEPARATOR = exports.DELIMITER = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* The character used to separate entries in the PATH environment variable.
|
|
8
|
+
*/
|
|
9
|
+
exports.DELIMITER = ":";
|
|
10
|
+
/**
|
|
11
|
+
* The character used to separate components of a file path.
|
|
12
|
+
*/
|
|
13
|
+
exports.SEPARATOR = "/";
|
|
14
|
+
/**
|
|
15
|
+
* A regular expression that matches one or more path separators.
|
|
16
|
+
*/
|
|
17
|
+
exports.SEPARATOR_PATTERN = /\/+/;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the directory path of a `path`.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { dirname } from "@std/path/posix/dirname";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
|
|
10
|
+
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
|
11
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
12
|
+
* assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @example Working with URLs
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { dirname } from "@std/path/posix/dirname";
|
|
19
|
+
* import { assertEquals } from "@std/assert";
|
|
20
|
+
*
|
|
21
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
22
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
|
|
23
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param path The path to get the directory from.
|
|
27
|
+
* @returns The directory path.
|
|
28
|
+
*/
|
|
29
|
+
export declare function dirname(path: string | URL): string;
|
|
30
|
+
//# sourceMappingURL=dirname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAmClD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.dirname = dirname;
|
|
6
|
+
const dirname_js_1 = require("../_common/dirname.js");
|
|
7
|
+
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
|
+
const _util_js_1 = require("./_util.js");
|
|
9
|
+
const from_file_url_js_1 = require("./from_file_url.js");
|
|
10
|
+
/**
|
|
11
|
+
* Return the directory path of a `path`.
|
|
12
|
+
*
|
|
13
|
+
* @example Usage
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { dirname } from "@std/path/posix/dirname";
|
|
16
|
+
* import { assertEquals } from "@std/assert";
|
|
17
|
+
*
|
|
18
|
+
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
|
|
19
|
+
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
|
|
20
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
21
|
+
* assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example Working with URLs
|
|
25
|
+
*
|
|
26
|
+
* ```ts
|
|
27
|
+
* import { dirname } from "@std/path/posix/dirname";
|
|
28
|
+
* import { assertEquals } from "@std/assert";
|
|
29
|
+
*
|
|
30
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
|
|
31
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
|
|
32
|
+
* assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @param path The path to get the directory from.
|
|
36
|
+
* @returns The directory path.
|
|
37
|
+
*/
|
|
38
|
+
function dirname(path) {
|
|
39
|
+
if (path instanceof URL) {
|
|
40
|
+
path = (0, from_file_url_js_1.fromFileUrl)(path);
|
|
41
|
+
}
|
|
42
|
+
(0, dirname_js_1.assertArg)(path);
|
|
43
|
+
let end = -1;
|
|
44
|
+
let matchedNonSeparator = false;
|
|
45
|
+
for (let i = path.length - 1; i >= 1; --i) {
|
|
46
|
+
if ((0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(i))) {
|
|
47
|
+
if (matchedNonSeparator) {
|
|
48
|
+
end = i;
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
matchedNonSeparator = true;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
// No matches. Fallback based on provided path:
|
|
57
|
+
//
|
|
58
|
+
// - leading slashes paths
|
|
59
|
+
// "/foo" => "/"
|
|
60
|
+
// "///foo" => "/"
|
|
61
|
+
// - no slash path
|
|
62
|
+
// "foo" => "."
|
|
63
|
+
if (end === -1) {
|
|
64
|
+
return (0, _util_js_1.isPosixPathSeparator)(path.charCodeAt(0)) ? "/" : ".";
|
|
65
|
+
}
|
|
66
|
+
return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
|
|
67
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a file URL to a path string.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
|
7
|
+
* import { assertEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @param url The file URL to convert.
|
|
13
|
+
* @returns The path string.
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromFileUrl(url: URL | string): string;
|
|
16
|
+
//# sourceMappingURL=from_file_url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAKrD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.fromFileUrl = fromFileUrl;
|
|
6
|
+
const from_file_url_js_1 = require("../_common/from_file_url.js");
|
|
7
|
+
/**
|
|
8
|
+
* Converts a file URL to a path string.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { fromFileUrl } from "@std/path/posix/from-file-url";
|
|
13
|
+
* import { assertEquals } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertEquals(fromFileUrl(new URL("file:///home/foo")), "/home/foo");
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param url The file URL to convert.
|
|
19
|
+
* @returns The path string.
|
|
20
|
+
*/
|
|
21
|
+
function fromFileUrl(url) {
|
|
22
|
+
url = (0, from_file_url_js_1.assertArg)(url);
|
|
23
|
+
return decodeURIComponent(url.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
24
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type GlobOptions } from "../_common/glob_to_reg_exp.js";
|
|
2
|
+
export type { GlobOptions };
|
|
3
|
+
/** Convert a glob string to a regular expression.
|
|
4
|
+
*
|
|
5
|
+
* Tries to match bash glob expansion as closely as possible.
|
|
6
|
+
*
|
|
7
|
+
* Basic glob syntax:
|
|
8
|
+
* - `*` - Matches everything without leaving the path segment.
|
|
9
|
+
* - `?` - Matches any single character.
|
|
10
|
+
* - `{foo,bar}` - Matches `foo` or `bar`.
|
|
11
|
+
* - `[abcd]` - Matches `a`, `b`, `c` or `d`.
|
|
12
|
+
* - `[a-d]` - Matches `a`, `b`, `c` or `d`.
|
|
13
|
+
* - `[!abcd]` - Matches any single character besides `a`, `b`, `c` or `d`.
|
|
14
|
+
* - `[[:<class>:]]` - Matches any character belonging to `<class>`.
|
|
15
|
+
* - `[[:alnum:]]` - Matches any digit or letter.
|
|
16
|
+
* - `[[:digit:]abc]` - Matches any digit, `a`, `b` or `c`.
|
|
17
|
+
* - See https://facelessuser.github.io/wcmatch/glob/#posix-character-classes
|
|
18
|
+
* for a complete list of supported character classes.
|
|
19
|
+
* - `\` - Escapes the next character for an `os` other than `"windows"`.
|
|
20
|
+
* - \` - Escapes the next character for `os` set to `"windows"`.
|
|
21
|
+
* - `/` - Path separator.
|
|
22
|
+
* - `\` - Additional path separator only for `os` set to `"windows"`.
|
|
23
|
+
*
|
|
24
|
+
* Extended syntax:
|
|
25
|
+
* - Requires `{ extended: true }`.
|
|
26
|
+
* - `?(foo|bar)` - Matches 0 or 1 instance of `{foo,bar}`.
|
|
27
|
+
* - `@(foo|bar)` - Matches 1 instance of `{foo,bar}`. They behave the same.
|
|
28
|
+
* - `*(foo|bar)` - Matches _n_ instances of `{foo,bar}`.
|
|
29
|
+
* - `+(foo|bar)` - Matches _n > 0_ instances of `{foo,bar}`.
|
|
30
|
+
* - `!(foo|bar)` - Matches anything other than `{foo,bar}`.
|
|
31
|
+
* - See https://www.linuxjournal.com/content/bash-extended-globbing.
|
|
32
|
+
*
|
|
33
|
+
* Globstar syntax:
|
|
34
|
+
* - Requires `{ globstar: true }`.
|
|
35
|
+
* - `**` - Matches any number of any path segments.
|
|
36
|
+
* - Must comprise its entire path segment in the provided glob.
|
|
37
|
+
* - See https://www.linuxjournal.com/content/globstar-new-bash-globbing-option.
|
|
38
|
+
*
|
|
39
|
+
* Note the following properties:
|
|
40
|
+
* - The generated `RegExp` is anchored at both start and end.
|
|
41
|
+
* - Repeating and trailing separators are tolerated. Trailing separators in the
|
|
42
|
+
* provided glob have no meaning and are discarded.
|
|
43
|
+
* - Absolute globs will only match absolute paths, etc.
|
|
44
|
+
* - Empty globs will match nothing.
|
|
45
|
+
* - Any special glob syntax must be contained to one path segment. For example,
|
|
46
|
+
* `?(foo|bar/baz)` is invalid. The separator will take precedence and the
|
|
47
|
+
* first segment ends with an unclosed group.
|
|
48
|
+
* - If a path segment ends with unclosed groups or a dangling escape prefix, a
|
|
49
|
+
* parse error has occurred. Every character for that segment is taken
|
|
50
|
+
* literally in this event.
|
|
51
|
+
*
|
|
52
|
+
* Limitations:
|
|
53
|
+
* - A negative group like `!(foo|bar)` will wrongly be converted to a negative
|
|
54
|
+
* look-ahead followed by a wildcard. This means that `!(foo).js` will wrongly
|
|
55
|
+
* fail to match `foobar.js`, even though `foobar` is not `foo`. Effectively,
|
|
56
|
+
* `!(foo|bar)` is treated like `!(@(foo|bar)*)`. This will work correctly if
|
|
57
|
+
* the group occurs not nested at the end of the segment.
|
|
58
|
+
*
|
|
59
|
+
* @example Usage
|
|
60
|
+
* ```ts
|
|
61
|
+
* import { globToRegExp } from "@std/path/posix/glob-to-regexp";
|
|
62
|
+
* import { assertEquals } from "@std/assert";
|
|
63
|
+
*
|
|
64
|
+
* assertEquals(globToRegExp("*.js"), /^[^/]*\.js\/*$/);
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @param glob Glob string to convert.
|
|
68
|
+
* @param options Conversion options.
|
|
69
|
+
* @returns The regular expression equivalent to the glob.
|
|
70
|
+
*/
|
|
71
|
+
export declare function globToRegExp(glob: string, options?: GlobOptions): RegExp;
|
|
72
|
+
//# sourceMappingURL=glob_to_regexp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob_to_regexp.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EAAE,WAAW,EAAE,CAAC;AAW5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAER"}
|