Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keplersj/uri-path-breakdown
Single-function module to break a URI path down to its parts
https://github.com/keplersj/uri-path-breakdown
breadcrumbs path seo uri url
Last synced: 10 days ago
JSON representation
Single-function module to break a URI path down to its parts
- Host: GitHub
- URL: https://github.com/keplersj/uri-path-breakdown
- Owner: keplersj
- License: isc
- Created: 2019-12-17T21:32:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T02:43:55.000Z (6 months ago)
- Last Synced: 2024-11-08T12:46:21.432Z (about 2 months ago)
- Topics: breadcrumbs, path, seo, uri, url
- Language: TypeScript
- Size: 1.52 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uri-path-breakdown
Single-function module to break a URI path down to its parts
## Installation
Install using NPM:
```bash
npm install uri-path-breakdown
```## Usage
Use exported function to break a URI down to the segments of its path:
```js
import { breakdownURIPath } from "uri-path-breakdown";const segments = breakdownURIPath("/test/subdir/example.html"); // => ["/", "/test/", "/test/subdir/", "/test/subdir/example.html"]
```## License
Copyright 2019 [Kepler Sticka-Jones](https://keplersj.com). Licensed MIT