I have a simple server that runs fine (below), the problem is that the value of process.env.PORT is not a number as I expected, rather it is a string value like "\\.\pipe\d226d7b0-64a0-4d04-96d4-a75e1278b7a9". How do I get the actual numeric value of the port the http listener is using?
var path = require("path");
var server = require("../server/server.js");
server.start(process.env.PORT, function() {
console.log("Server started.");
});