UNPKG
got-cjs
Version:
latest (12.5.4)
next (12.0.4)
12.5.4
12.5.3
12.5.2
12.3.1
12.0.4
12.0.1
12.0.0
12.0.0-beta.4
12.0.0-beta.3
12.0.0-beta.2
0.0.2
0.0.1
Human-friendly and powerful HTTP request library for Node.js
github.com/apify/got-cjs
apify/got-cjs
got-cjs
/
dist
/
source
/
core
/
utils
/
is-unix-socket-url.js
8 lines
(7 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
// eslint-disable-next-line @typescript-eslint/naming-convention
function
isUnixSocketURL
(
url
) {
return
url.
protocol
===
'unix:'
|| url.
hostname
===
'unix'
; }
exports
.
default
= isUnixSocketURL;