πŸ’Get info about user

Now we'll learn some user-information functions

req.mobile //Check if device mobile or not (true or false)

req.platform //Check the operation system ("Windows")

req.useragent //Check useragent

req.language OR req.languages //Pretty same but have small diffrences

req.referer 
//Something like you came from youtube.com to my website (You should try ur self)

req.ip // Check ipV4
req.ipv6 // Check ipV6

req.path // Example output : GET /url

req.writehttp() // We dont know either

req.status(200) //Make the website return a status (404, 401, 200, 500...)

Last updated

Was this helpful?