mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
b0b0594767
- preserve referential invariants (e.g. path.posix === posix) - remove glob and separator exports - save removal of fromFileUrl and toFileUrl for a different PR as that refactor is more involved - addresses #18177
25 lines
473 B
TypeScript
25 lines
473 B
TypeScript
// Copyright the Browserify authors. MIT License.
|
|
// Ported from https://github.com/browserify/path-browserify/
|
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import path from "ext:deno_node/path/mod.ts";
|
|
|
|
export const {
|
|
basename,
|
|
delimiter,
|
|
dirname,
|
|
extname,
|
|
format,
|
|
fromFileUrl,
|
|
isAbsolute,
|
|
join,
|
|
normalize,
|
|
parse,
|
|
relative,
|
|
resolve,
|
|
sep,
|
|
toFileUrl,
|
|
toNamespacedPath,
|
|
} = path.posix;
|
|
|
|
export default path.posix;
|