Tagged: resolve

0

path.join vs path.resolve in node.js

path.join([…paths]) joins all the path segments using platform specific delimiter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path segments into an absolute path. It processes from right to left, until...