Open jonathanong opened 10 years ago
okay and path-join.js. lol
querystring
was modified from node core to separate out the try-catch in querystring.parse()
.
path-join
is basically the posix path.join()
from node core, simplified a bit. The two reasons for this are:
path.join()
changes behavior depending on whether you're on Windows or not (it uses '\' instead of '/' on Windows) which causes problems when you're using it to join url paths for mounted routerspath
functions, so I just combined some of the code to make it a little more efficient (e.g. no splitting and joining only to split again).oh god. i think i need path-join
as a module! i always do path.join()
and some sort of replace(/\/\//, '/')
crap
If only... https://github.com/joyent/node/issues/2216
is it just a faster
querystring
parser?