Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
38.9K+ articles
DSA
22.5K+ articles
Python
20.5K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
11.7K+ articles
School Learning
11.4K+ articles
Java
10.5K+ articles
Node.js
3.5K+ articles
Node.js-Methods
402+ articles
Node.js-path-module
11 posts
Recent Articles
Popular Articles
Node.js Path Module Complete Reference
Last Updated: 07 December 2022
The Path Module in Node.js provides the utilities for working with file and directory paths.Example:[tabby title="Javascript"][sourcecode language="javascript"]// Import t...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.format() Method
Last Updated: 08 October 2021
The path.format() method is used to return a path string from the given path object. The method has some rules where one path property gets more priority over another: ...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.toNamespacedPath() Method
Last Updated: 08 October 2021
The path.toNamespacedPath() method is used to find the equivalent namespace-prefixed path from the given path. This method is meaningful only on Windows Systems. It would ...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.delimiter Property
Last Updated: 11 October 2021
The path.delimiter property is an inbuilt application programming interface of the path module which is used to get platform-specific path delimiter.Syntax:path.delimiter;...
read more
Web Technologies
Node.js
Node.js-path-module
Node path.resolve() Method
Last Updated: 15 March 2025
The path.resolve() method takes a sequence of paths or path segments and resolves them into an absolute path. It processes the paths from right to left and appends each pa...
read more
Web Technologies
JavaScript
Node.js
Node.js-path-module
Node.js path.join() Method
Last Updated: 17 October 2024
The path.join() method in Node.js is part of the Path module, which is used for handling and transforming file paths. The method is used to join multiple path segments tog...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.extname() Method
Last Updated: 13 October 2021
The path.extname() method is used to get the extension portion of a file path. The extension string returned from the last occurrence of a period (.) in the path to the en...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js-Methods
Node.js path.isAbsolute() Method
Last Updated: 13 October 2021
The path.isAbsolute() method is used to check whether the given path is an absolute path or not. An absolute path is defined as a path that contains the complete details n...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js-Methods
Node.js path.dirname() Method
Last Updated: 13 October 2021
The path.dirname() method is used to get the directory name of the given path. It ignores the respective platform's trailing directory separators.Syntax:path.dirname( path...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.relative() Method
Last Updated: 13 October 2021
The path.relative() method is used to find the relative path from a given path to another path based on the current working directory. If both the given paths are the same...
read more
Web Technologies
Node.js
Node.js-path-module
Node.js path.basename() Method
Last Updated: 13 October 2021
The path.basename() method is used to get the filename portion of a path to the file. The trailing directory separators are ignored when using this method. Syntax:path.bas...
read more
Web Technologies
Node.js
Node.js-path-module
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !