urlmodule
work in progress
URLAssembler helps to assemble URLs.
See https://url.spec.whatwg.org/
Example
static { return 'https://www.google.com' }const url = pathname : 'recaptcha/api.js' searchParams : render : 'explicit' onload : `ID_onload` hl : documentbodylang console
Result:
https://www.google.com/recaptcha/api.js?render=explicit&onload=ID1536188939748_onload&hl=ru
Installation
npm install urlmodule