summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
authorguybedford <guybedford@gmail.com>2018-08-24 18:13:32 +0200
committerguybedford <guybedford@gmail.com>2018-09-04 16:08:21 +0200
commiteef072fa083f05f84fa6ca1908472eb228095a38 (patch)
tree3fd3bc972b893bd49616bba2808e449743f55ee9 /lib/url.js
parent0d3da39f575afba5ab6a5a34f4e88a798a66dc6d (diff)
downloadandroid-node-v8-eef072fa083f05f84fa6ca1908472eb228095a38.tar.gz
android-node-v8-eef072fa083f05f84fa6ca1908472eb228095a38.tar.bz2
android-node-v8-eef072fa083f05f84fa6ca1908472eb228095a38.zip
url: provide pathToFileURL and fileURLToPath
PR-URL: https://github.com/nodejs/node/pull/22506 Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/url.js b/lib/url.js
index 3a2c3c01ea..ba2033b4e5 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -42,6 +42,8 @@ const {
domainToUnicode,
formatSymbol,
encodeStr,
+ pathToFileURL,
+ fileURLToPath
} = require('internal/url');
// Original url.parse() API
@@ -966,5 +968,9 @@ module.exports = {
URL,
URLSearchParams,
domainToASCII,
- domainToUnicode
+ domainToUnicode,
+
+ // Utilities
+ pathToFileURL,
+ fileURLToPath
};