mcrae-pm
v1.0.4
Published
Path Modifier is a package utilizing and simplifying the functionalities of Node's built in path module.
Downloads
15
Maintainers
Readme
Path Modifier
Path Modifier is a package utilizing and simplifying the functionalities of Node's built in path module.
Install the NPM Package:
npm i mcrae-pm
Require the Package into your Node.js file:
const class = require ('mcrae-pm');
Call class and add Path to be modified.
const variable = new class ('Path');
The original path entered.
variable.getPath ();
The root directory of the path.
variable.getRoot ();
The name of the file in the path.
variable.getName ();
The last part of the path.
variable.getBase ();
The directory the path is in.
variable.getDir ();
The extension for file in path.
variable.getExt ();