JSPM

@neumatter/url

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q20980F

    Extends the URL class to make an easier to work with URL API.

    Package Exports

    • @neumatter/url
    • @neumatter/url/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@neumatter/url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    NeuURL

    JavaScript Style Guide

    Extends the URL class to make an easier to work with URL API.


    Table of Contents


    Install

    npm i @neumatter/url

    Usage

    constructor (class) NeuURL:

    Args [url: string | URL | NeuURL | undefined, base: string | URL | NeuURL | undefined]

    import NeuURL from '@neumatter/url'
    
    const url = new NeuURL('/path/subdir')
    const url = new NeuURL('https://localhost:3000/path/subdir')
    const url = new NeuURL()