Is this safe to use require(\"path\").join to concatenate URLs, for example:
require(\"path\").join
require(\"path\").join(\"http://example.com\", \"ok\"); //returns
We do it like this:
var _ = require('lodash'); function urlJoin(a, b) { return _.trimEnd(a, '/') + '/' + _.trimStart(b, '/'); }