Ministry of Technology
Show Menu

URI Path Manager

URI Path Manager
Created by Ministry
Language
JavaScript (ES5)
Type
Web, Library

This project provides simple functions for working with paths.

  const myPathManager = new PathManager()

  const currentUrl = myPathManager.href()
  const host = myPathManager.host()
  const path = myPathManager.path()

  const pathContainsLogin = myPathManager.pathContains("login")

  const pathIsLoginPage = myPathManager.pathIs("/login/internal")

It is dependent on the Window Wrapper project.

Visit us on GitHub