URLBuilder class for easier composition of URL objects in TypeScript/JavaScript
Inspired by JAX-RS UriBuilder.
This implementation does not support variable templates such as {var} as of yet.
URLBuilder.fromURL("https://atomgraph.com").path("cases").path("nxp-semiconductors").build().toString();
Will return:
https://atomgraph.com/cases/nxp-semiconductors