https://github.com/atomgraph/urlbuilder
URLBuilder class for easier composition of URLs in TypeScript/JavaScript
https://github.com/atomgraph/urlbuilder
builder typescript typescript-library uri url
Last synced: 5 days ago
JSON representation
URLBuilder class for easier composition of URLs in TypeScript/JavaScript
- Host: GitHub
- URL: https://github.com/atomgraph/urlbuilder
- Owner: AtomGraph
- Created: 2019-07-19T07:17:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T23:42:13.000Z (over 4 years ago)
- Last Synced: 2025-01-19T22:40:56.800Z (5 months ago)
- Topics: builder, typescript, typescript-library, uri, url
- Language: TypeScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URLBuilder
URLBuilder class for easier composition of [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL) objects in TypeScript/JavaScriptInspired by JAX-RS [UriBuilder](https://docs.oracle.com/javaee/7/api/javax/ws/rs/core/UriBuilder.html).
This implementation does not support variable templates such as `{var}` as of yet.## Example
URLBuilder.fromURL("https://atomgraph.com").path("cases").path("nxp-semiconductors").build().toString();
Will return:
https://atomgraph.com/cases/nxp-semiconductors