feat: joinPath() - #230
Conversation
| /* If the joined path string is a zero-length string, then '.' will be returned, | ||
| representing the current working directory. */ |
path.resolve() is work? |
I mean this for now, need to fixed unit test, ready for review. |
|
Recently I have found a package on npm: https://npm.im/url-join Have a look? |
|
See also hexojs/hexo#5457 |
|
I think it should be implemented based on path or any other module instead of string concatenation. |
|
Yes, maybe |
ref: hexojs/hexo#4479
this enhances
path.join()to convert slash, but thisjoinPath()doesn't resolve '../' yet.