summaryrefslogtreecommitdiff
path: root/std/node/url.ts
diff options
context:
space:
mode:
authorBenjamin Lupton <b@lupton.cc>2020-08-22 12:39:56 +1000
committerGitHub <noreply@github.com>2020-08-21 22:39:56 -0400
commitb7ad544dd6f1d319ecf20aa410c98fb588724509 (patch)
tree252d76ccc84ef36d693d4438bee8bcf12d71aeb5 /std/node/url.ts
parent73288beb156e378342f2651cbefd0660b43cef17 (diff)
feat(std/node): add URL export (#7132)
Diffstat (limited to 'std/node/url.ts')
-rw-r--r--std/node/url.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/std/node/url.ts b/std/node/url.ts
index 826a274f8..577c5eaf2 100644
--- a/std/node/url.ts
+++ b/std/node/url.ts
@@ -36,6 +36,9 @@ const newlineRegEx = /\n/g;
const carriageReturnRegEx = /\r/g;
const tabRegEx = /\t/g;
+const _url = URL;
+export { _url as URL };
+
export function fileURLToPath(path: string | URL): string {
if (typeof path === "string") path = new URL(path);
else if (!(path instanceof URL)) {