NeuURL
Extends the URL class to make an easier to work with URL API.
Table of Contents
Install
npm i @neumatter/url
Usage
NeuURL
:
constructor (class) 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()