Easy URL Parsing With Isomorphic JavaScript

isNode variable should be renamed to isCommonJs, because that check doesn’t tell you if you’re running in node. Consider when someone uses this script with JSPM or with browserify.