std/path
Ben McLean c3b113d7a9
refactor(path): make isWindows check compatible with Node and Bun (#4961)
* Refactored to get rid of unnecessary function.

All that needs to be done here is to check if
the version is windows. Handling each combination
of runtime and operating system will make
the existing osType difficult to test and maintain.

* Changed browser version of isWindows.

It was using a deprecated web API.

* Refactored getIsWindows.

* Added node/bun version of isWindows.

* Got cross platform os module working.

* Handled Deno error.

* Fixed type errors.

* Removed node:os import.

This is how NodeJS checks to see
if the underlying OS is windows.

* tweaks

* fix

* cleanup

* tweak

* fix

* Added support for node.

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-30 08:39:59 +10:00
..
_common refactor(path,streams): align additional error messages (#5718) 2024-08-23 12:31:01 +09:00
posix feat(path/unstable): support URL in extname() (#5818) 2024-08-26 16:33:53 +09:00
windows feat(path/unstable): support URL in extname() (#5818) 2024-08-26 16:33:53 +09:00
_os.ts refactor(path): make isWindows check compatible with Node and Bun (#4961) 2024-08-30 08:39:59 +10:00
basename_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
basename.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
common_test.ts BREAKING(path): remove separator argument from common() (#4947) 2024-06-04 14:07:38 +10:00
common.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
constants.ts docs(path): improve API docs (#4900) 2024-06-02 11:46:36 +09:00
deno.json chore: release 2024.08.26 (#5824) 2024-08-26 17:33:29 +09:00
dirname_test.ts refactor(path,streams): align additional error messages (#5718) 2024-08-23 12:31:01 +09:00
dirname.ts feat(path/unstable): support URL input in dirname() (#5747) 2024-08-21 14:28:58 +09:00
extname_test.ts feat(path/unstable): support URL in extname() (#5818) 2024-08-26 16:33:53 +09:00
extname.ts feat(path/unstable): support URL in extname() (#5818) 2024-08-26 16:33:53 +09:00
format.ts BREAKING(path): remove FormatInputPathObject (#5321) 2024-07-05 03:26:18 +00:00
from_file_url_test.ts refactor(path,streams): align additional error messages (#5718) 2024-08-23 12:31:01 +09:00
from_file_url.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
glob_to_regexp_test.ts BREAKING(path): remove GlobToRegExpOptions.os and OSType export (#4928) 2024-06-04 14:03:48 +10:00
glob_to_regexp.ts BREAKING(path): remove GlobToRegExpOptions (#5320) 2024-07-05 12:43:43 +10:00
is_absolute_test.ts test(path): add test cases of isAbsolute(), joinGlobs(), and common() (#4904) 2024-05-30 18:17:29 +09:00
is_absolute.ts docs(path): improve API docs (#4900) 2024-06-02 11:46:36 +09:00
is_glob_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
is_glob.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
join_globs_test.ts test(path): add test cases of isAbsolute(), joinGlobs(), and common() (#4904) 2024-05-30 18:17:29 +09:00
join_globs.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
join_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
join.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
mod.ts docs(path): add examples to @std/path/posix examples (#5371) 2024-07-24 16:14:56 +10:00
normalize_glob_test.ts test(path): improve normalizeGlob() test coverage (#4940) 2024-06-03 22:54:18 +09:00
normalize_glob.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
normalize_test.ts test(path): improve normalize() coverage (#4939) 2024-06-03 21:44:23 +09:00
normalize.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
parse_format_test.ts BREAKING(path): remove FormatInputPathObject (#5321) 2024-07-05 03:26:18 +00:00
parse_test.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
parse.ts BREAKING(path): remove FormatInputPathObject (#5321) 2024-07-05 03:26:18 +00:00
relative_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
relative.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
resolve_test.ts chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
resolve.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
to_file_url_test.ts refactor(path,streams): align additional error messages (#5718) 2024-08-23 12:31:01 +09:00
to_file_url.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
to_namespaced_path_test.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
to_namespaced_path.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
types.ts BREAKING(path): remove FormatInputPathObject (#5321) 2024-07-05 03:26:18 +00:00