16 lines
488 B
TypeScript
16 lines
488 B
TypeScript
import * as plugins from './smartpath.plugins.js';
|
|
import * as getMod from './smartpath.get.js';
|
|
|
|
export class Smartpath {
|
|
originalPath: string;
|
|
type: getMod.TPathType;
|
|
pathLevels: string[];
|
|
pathLevelsBackwards: string[];
|
|
constructor(pathArg: string) {
|
|
this.originalPath = pathArg;
|
|
this.type = getMod.type(this.originalPath);
|
|
this.pathLevels = getMod.pathLevels(this.originalPath);
|
|
this.pathLevelsBackwards = getMod.pathLevelsBackwards(this.originalPath);
|
|
}
|
|
}
|