UNPKG
request-public-ip
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.0
Node.js module for retrieving a request's public IP address
request-public-ip
/
dist
/
cjs
/
get-client-public-ip.d.ts
6 lines
(5 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
5
6
export
type
Headers
= { [
key
:
string
]:
any
; };
export
declare
function
getClientPublicIpFromHeaders
(
headers
:
Headers
):
string
|
undefined
;
export
declare
function
getClientPublicIpFromXForwardedFor
(
input
?:
string
|
string
[]
):
string
|
undefined
;