Nietzsche's Preposterous Moustache
Need private packages and team management tools?Check out npm Teams »

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

1,554

Version

1.0.0

License

MIT

Unpacked Size

22.2 kB

Total Files

19

Last publish

Collaborators

  • avatar