Single-function module to break a URI path down to its parts
Install using NPM:
npm install uri-path-breakdown
Use exported function to break a URI down to the segments of its path:
import { breakdownURIPath } from "uri-path-breakdown";
const segments = breakdownURIPath("/test/subdir/example.html"); // => ["/", "/test/", "/test/subdir/", "/test/subdir/example.html"]
Copyright 2019 Kepler Sticka-Jones. Licensed MIT