@neumatter/url
v1.0.0
Published
Extends the URL class to make an easier to work with URL API.
Maintainers
Readme
NeuURL
Extends the URL class to make an easier to work with URL API.
Table of Contents
Install
npm i @neumatter/urlUsage
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()