I am working on nodejs. I have to set my entire pathname into the variable.
I tried this to set the path name in to the variable
var secretKey = path.basename("../Users/secretkey.pem");
when I console.log the variable I'll get only the filename secretkey.pem alone but not get the exact path that I mentioned.
How to Set the Exact path into the variable.