Have ideas to improve npm?Join in the discussion! »

uri-path-breakdown

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

438

Version

1.0.14

License

MIT

Unpacked Size

22.9 kB

Total Files

19

Last publish

Collaborators

  • avatar