Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 {}'
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #nodejs
ADD COMMENT
Topic
Name
8+5 =