added Smartpath class and path level array

This commit is contained in:
2016-11-26 22:46:36 +01:00
parent c52c1902ee
commit 7916929550
18 changed files with 250 additions and 198 deletions

View File

@@ -0,0 +1,15 @@
import * as plugins from './smartpath.plugins'
import * as getMod from './smartpath.get'
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)
}
}