path.join nodejs code example
Example: path.join nodejs
/* The path.join() method joins all given path segments together using
the platform-specific separator as a delimiter, then normalizes the
resulting path. */
path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
// Returns: '/foo/bar/baz/asdf'
path.join('foo', {}, 'bar');
// Throws 'TypeError: Path must be a string. Received {}'