Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

uri-path-breakdown

1.0.0 • 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

Install

npm i uri-path-breakdown

DownloadsWeekly Downloads

689

Version

1.0.0

License

MIT

Unpacked Size

22.2 kB

Total Files

19

Last publish

Collaborators

  • avatar