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:

Top 3 UX Design Articles of 2024 to Remember

Based on most subscriptions ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­...

Contact Form

Name

Email *

Message *