0% found this document useful (0 votes)
13 views7 pages

Path Module

Uploaded by

sushree007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

Path Module

Uploaded by

sushree007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Path Module

PW SKILLS
List of content:
1. NodeJS path module

PW SKILLS
NodeJS path module
● Node.js provides you with the path module that allows you to interact with file
paths easily.
● The path module has many useful properties and methods to access and
manipulate paths in the file system.

PW SKILLS
Useful path properties
● The path object has the sep property that represents the platform-specific
path separator

PW SKILLS
Path module

PW SKILLS
Handy path methods
The following shows some handy methods of the path module that you
probably use very often.

path.basename(path, [,ext])
path.dirname(path)
path.extname(path)
path.format(pathObj)
path.isAbsolute(path)
path.join(...path)
path.normalize(path)
path.parse(path)
path.relative(from, to)
path.resolve(...path)

PW SKILLS
THANK
YOU
PW SKILLS

You might also like