mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
feat(std/path): Add fromFileUrl() (#4993)
Fix: URL constructor accepts a URL object which is not a base
This commit is contained in:
parent
3e6ea62841
commit
b51c863550
6 changed files with 74 additions and 11 deletions
|
@ -11,19 +11,20 @@ const path = isWindows ? _win32 : _posix;
|
|||
export const win32 = _win32;
|
||||
export const posix = _posix;
|
||||
export const {
|
||||
resolve,
|
||||
normalize,
|
||||
isAbsolute,
|
||||
join,
|
||||
relative,
|
||||
toNamespacedPath,
|
||||
dirname,
|
||||
basename,
|
||||
delimiter,
|
||||
dirname,
|
||||
extname,
|
||||
format,
|
||||
fromFileUrl,
|
||||
isAbsolute,
|
||||
join,
|
||||
normalize,
|
||||
parse,
|
||||
relative,
|
||||
resolve,
|
||||
sep,
|
||||
delimiter,
|
||||
toNamespacedPath,
|
||||
} = path;
|
||||
|
||||
export { common } from "./common.ts";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue