Tagged: resolve

0

path.join vs path.resolve in node.js

path.join([…paths]) joins all the path seg­ments using plat­form spe­cific delim­iter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path seg­ments into an absolute path. It processes from right to left, until…