Path Module in Node.js | Get File Info in Node.js

Опубликовано: 01 Октябрь 2024
на канале: Stubborn Developers
1,124
15

#stubborndevelopers

In this video we will learn that how we can get all the details of any file in Node.js, PATH is the basically core module of node js so we don't have to use NPM to install it, we can use it just after require in our app.

//Require PATH module in your app
const path= require("path");

//Some common methods of PATH module in Node.js
path.dirname()
path.basename()
path.extname()
path.parse()

*********** Node.JS Tutorial in English 2021 Playlist ***********
   • how to install node js  

*********** React.JS Tutorial in Hindi 2021 Playlist ***********
   • react js introduction in hindi