What is the difference (if any) between
... The resulting path is normalized, and ...
path.normalize Gets rid of the extra
.., etc. in the path.
path.resolve resolves a path into an absolute path. Example (my current working directory was
> path.normalize('../../src/../src/node') '../../src/node' > path.resolve('../../src/../src/node') '/Users/mtilley/src/node'
In other words,
path.normalize is "What is the shortest path I can take that will take me to the same place as the input", while
path.resolve is "What is my destination if I take this path."