Skip to content

Chores: Clean usage of Deno.build.os for Windows to reduce duplication #4663

@cderv

Description

@cderv

We are using a lot Deno.build.os === "windows" though we have cleaner solution for our code.

We have our own wrapper

export function isWindows() {
return Deno.build.os === "windows";
}

and there is one also in https://deno.land/std@0.166.0/_util/os.ts

I believe this would be beneficial for our code to be simpler with less duplication

Metadata

Metadata

Assignees

Labels

denoIssues related to denoenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions