mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
25 lines
833 B
TypeScript
25 lines
833 B
TypeScript
// Copyright the Browserify authors. MIT License.
|
|
// Ported from https://github.com/browserify/path-browserify/
|
|
|
|
import * as _win32 from "./win32.ts";
|
|
import * as _posix from "./posix.ts";
|
|
|
|
import { isWindows } from "./constants.ts";
|
|
|
|
const path = isWindows ? _win32 : _posix;
|
|
|
|
export const win32 = _win32;
|
|
export const posix = _posix;
|
|
export const resolve = path.resolve;
|
|
export const normalize = path.normalize;
|
|
export const isAbsolute = path.isAbsolute;
|
|
export const join = path.join;
|
|
export const relative = path.relative;
|
|
export const toNamespacedPath = path.toNamespacedPath;
|
|
export const dirname = path.dirname;
|
|
export const basename = path.basename;
|
|
export const extname = path.extname;
|
|
export const format = path.format;
|
|
export const parse = path.parse;
|
|
export const sep = path.sep;
|
|
export const delimiter = path.delimiter;
|