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
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()