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

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

    1.0.18 • 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,681

    Version

    1.0.18

    License

    MIT

    Unpacked Size

    22.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar