Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/path/separator.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
File
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import { isWindows } from "../_util/os.ts";
export const SEP = isWindows ? "\\" : "/";export const SEP_PATTERN = isWindows ? /[\\/]+/ : /\/+/;