deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

suggestion: make `isWindows` cross-runtime in `@std/path`

Open iuioiua opened this issue 1 year ago • 0 comments

This variable can currently only be evaluated in browsers and Deno. I suggest making it cross-runtime (i.e., also able to be evaluated on Bun and Node). AFAIK, doing so would make all of @std/path cross-runtime.

https://github.com/denoland/deno_std/blob/f94f8f3580643e4d0b89f338b3927bd9c75b91bf/path/_os.ts#L31

iuioiua avatar May 31 '24 05:05 iuioiua