uri-path-manager
Version:
This project provides simple functions for working with paths.
34 lines (22 loc) • 1.3 kB
Markdown
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")
Welcome to The Ministry of Technology open source products. All open source Ministry of Technology products are distributed under the MIT License for maximum re-usability.
Our other open source repositories can be found here...
* [https://github.com/ministryotech](https://github.com/ministryotech)
* [https://github.com/tiefling](https://github.com/tiefling)
You can download the package for this project from any of the following package managers...
- **NPM** - [https://www.npmjs.com/uri-path-manager](https://www.npmjs.com/uri-path-manager)
If you would like to contribute to the project, please contact me.
* Keith Jackson - temporal-net@live.co.uk
This project is supported on all ES6 and above platforms. For ES5 platforms please use up to v2.1.0.