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:

What is Security Engineering? Part 2.

A broad overview of the ever-developing security engineering field; a domain that can feel intimidating to some software engineers. With Nie...

Contact Form

Name

Email *

Message *