1.1.3 • Published 22 days ago

@teamteanpm2024/earum-occaecati-assumenda v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

@teamteanpm2024/earum-occaecati-assumenda

Resolve a URI relative to an optional base URI

Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths.

Installation

npm install @teamteanpm2024/earum-occaecati-assumenda

Usage

function resolve(input: string, base?: string): string;
import resolve from '@teamteanpm2024/earum-occaecati-assumenda';

resolve('foo', 'https://example.com'); // => 'https://example.com/foo'
InputBaseResolutionExplanation
https://example.comanyhttps://example.com/Input is normalized only
//example.comhttps://base.com/https://example.com/Input inherits the base's protocol
//example.comrest//example.com/Input is normalized only
/examplehttps://base.com/https://base.com/exampleInput inherits the base's origin
/example//base.com///base.com/exampleInput inherits the base's host and remains protocol relative
/examplerest/exampleInput is normalized only
examplehttps://base.com/dir/https://base.com/dir/exampleInput is joined with the base
examplehttps://base.com/filehttps://base.com/exampleInput is joined with the base without its file
example//base.com/dir///base.com/dir/exampleInput is joined with the base's last directory
example//base.com/file//base.com/exampleInput is joined with the base without its file
example/base/dir//base/dir/exampleInput is joined with the base's last directory
example/base/file/base/exampleInput is joined with the base without its file
examplebase/dir/base/dir/exampleInput is joined with the base's last directory
examplebase/filebase/exampleInput is joined with the base without its file
readES2020setImmediatebrowserlistposeeslintconfigjoiArray.prototype.includestapechineseObservablesfast-copyshebangcommanderes8Object.getPrototypeOflinksetterUint16ArrayoptimizerreducetrimRightdescriptorurlmatchesqueueMicrotaskredux-toolkit[[Prototype]]mobiledeterministicmake dir__proto__Array.prototype.filterloggerdeletetypedjestwgetcall-bindjseast-asian-widthoncesignalsRegExp#flagsajvdirectorycollectioncolumnsgetterxdgwarningpreprocessorES2023ObservablebundlertypescriptinstallerArraywritableimportinvariantiteratorJSON-SchemaemojicorsfastifyairbnbtrimLeftBigInt64Arraymime-dbargumentArrayBufferstyle.envrapidwatchingexpressshrinkwrapenderajaxmapcode pointscurriedSymbol.toStringTagindicatorserializationwhiches7hookschromiumponyfillmovezeromomentcontainsObject.valuesopentacitintrinsiceventDispatcherclientconfigurableproppropertiestranspilerdebugfull-widthPushdatechannelobjectextendshamchildES2022YAMLreducertypejson-schemalastdom-testing-libraryassigntslibArrayBuffer.prototype.slicelessparserfullmimesigtermPromisehandlerslistenersassertionshellcurlhttpsvalides2015pluginsymbolsstyleguidexdg-openschemeStreamdeepclonefile systemmrues-shimsfindLastgetintrinsicmodulesexecutableinternal slotReflect.getPrototypeOfserializeasyncperformancelanguagepersistentoffsetworkspace:*loggingreact-testing-libraryweaksetfseventsiterationBigUint64ArrayauthmkdirsstringifierES2021es2018ratelimitvalidateassertbufferserializeroutputtakefast-deep-copyprettyrm -rfsortedeventsECMAScript 3termstringifysearchES20176to5io-tspackageirqpromiseuser-streamscallbackqueuei18nstartcss nestingsymlinkssyntaxerrorbannerenv$.extendes-abstracttypesafepatchexit-codeECMAScript 5URLjavascriptUnderscorenameexitbrowserslistsortaccessibility
1.1.3

22 days ago

1.1.2

23 days ago

1.0.2

24 days ago

1.0.1

25 days ago

1.0.0

25 days ago