Skip to content

Clean up platform specific APIs of path module #3600

Closed
@kt3k

Description

@kt3k

We currently expose platform specific APIs like the below:

import { posix, win32 } from "https://deno.land/std@0.200.0/path/mod.ts";

or

import * as win32 from "https://deno.land/std@0.200.0/path/win32.ts";
import * as posix from "https://deno.land/std@0.200.0/path/posix.ts";

I think this has 2 problems:

  • There's no way to import single implementation of platform specific API
  • 'posix' and 'win32' keywords don't match the way we usually specify the platform name (i.e. it doesn't match to Deno.build.os)

One way to solve this is to implement #687

part of #3489

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions