nodejs path module

const path = require('path');
var pathObj = path.parse(__filename);
console.log(pathObj);
> node path-module.js
{ root: 'C:\\',
  dir: 'C:\\Users\\Edward Lance Lorilla\\Documents\\node-practice',
  base: 'path-module.js',
  ext: '.js',
  name: 'path-module' }

No comments:

Renowned Water Expert Reynold Aquino Offers Exclusive Water Softener Discounts

Los Angeles, California - November 21, 2024 - World-renowned water expert Reynold Aquino is excited to announce exclusive discounts on prem...

Contact Form

Name

Email *

Message *