@rvoh/dream
    Preparing search index...

    Class PathHelpers

    Index

    Constructors

    Methods

    Constructors

    Methods

    • uses node's pathToFileURL to convert filepaths

      Parameters

      • filepath: string

        string

      Returns string

      the filepath, converted using pathToFileURL, returning the href property

    • converts a filepath with windows path delimiters into a path with linux/unix path delimiters

      PathHelpers.normalize("\My\Path\To\File.ts")
      // "/My/Path/To/File.ts"

      Parameters

      • filepath: string

        string

      Returns string

      the same filepath, with any windows path delimiters replaced to their linux/unix counterparts