Interface Flexi

Hierarchy

  • Flexi

Properties

concat: ((path, ...paths) => FlexiPath)

Type declaration

    • (path, ...paths): FlexiPath
    • Concatinates multiple paths into a new path

      Parameters

      Returns FlexiPath

empty: (() => FlexiPath)

Type declaration

exists: ((path) => boolean)

Type declaration

    • (path): boolean
    • boolean value indicating if the path exists or not

      Parameters

      Returns boolean

isEmpty: ((path) => boolean)

Type declaration

    • (path): boolean
    • boolean value indicating if the path is [[empty]] or not

      Parameters

      Returns boolean

isRoot: ((path) => boolean)

Type declaration

    • (path): boolean
    • Indicates if the path is [[root]] or not

      Parameters

      Returns boolean

path: ((path) => FlexiPath)

Type declaration

    • (path): FlexiPath
    • creates a new path

      Parameters

      • path: Path

        A path to a file, directory or any arbitrary path

      Returns FlexiPath

      The parsed FlexiPath

      Example

      import flexi from "flexi";

      const path = flexi.path("any path");
pathString: ((path) => string)

Type declaration

    • (path): string
    • Returns the string path of a path

      Parameters

      Returns string

root: (() => FlexiPath)

Type declaration

walk: Walker

Generated using TypeDoc