Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.5K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.4K+ articles
Node.js
3.0K+ articles
Node.js-Methods
403+ articles
Node.js-path-module
11 posts
Recent Articles
Node.js Path Module Complete Reference
Last Updated: 23 July 2025
The Path Module in Node.js provides the utilities for working with file and directory paths.Example:JavaScript // Import the path moduleconst path = require('pa...
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: 12 July 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
JavaScript
Node.js-path-module
Node.js path.join() Method
Last Updated: 03 June 2026
path.join() is a Node.js method from the path module that combines multiple path segments into a properly formatted file path, ensuring compatibility across different oper...
read more
Node.js
Node.js-path-module
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
Node.js
Node.js-path-module
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.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
Node.js
Node.js-path-module
Node.js-Methods
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