uri-path-breakdown
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

uri-path-breakdown

Single-function module to break a URI path down to its parts

Installation

Install using NPM:

npm install uri-path-breakdown

Usage

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"]

License

Copyright 2019 Kepler Sticka-Jones. Licensed MIT

Package Sidebar

Install

npm i uri-path-breakdown

Weekly Downloads

2

Version

1.0.21

License

MIT

Unpacked Size

22.9 kB

Total Files

19

Last publish

Collaborators

  • keplersj