Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ultirequiem/add_params
➕ Add Query Parameters to an URL
https://github.com/ultirequiem/add_params
deno javascript node nodejs query query-parametes typescript url
Last synced: 3 months ago
JSON representation
➕ Add Query Parameters to an URL
- Host: GitHub
- URL: https://github.com/ultirequiem/add_params
- Owner: UltiRequiem
- License: mit
- Created: 2022-03-16T22:48:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T00:20:38.000Z (9 months ago)
- Last Synced: 2024-10-24T09:19:32.207Z (3 months ago)
- Topics: deno, javascript, node, nodejs, query, query-parametes, typescript, url
- Language: TypeScript
- Homepage: https://ulti.js.org/add_params
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Add Query Params
[![Code Coverage](https://codecov.io/gh/UltiRequiem/add_params/branch/main/graph/badge.svg)](https://codecov.io/gh/UltiRequiem/add_params)
[![Deno Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/add_params/mod.ts)Add [Query Parameters](https://wikipedia.org/wiki/Query_string) to an URL.
## Usage
The API is the same on all this platforms ✔️
### [Deno 🦕](https://deno.land/x/add_params)
```javascript
import { addParams } from "https://deno.land/x/add_params/mod.ts";addParams("https://ultirequiem.com", { page: 33, author: "Me", share: false });
//=> https://ultirequiem.com/?page=33&author=Me&share=falseaddParams(new URL("/api", "https://example.com"), { day: 2 });
//=> https://example.com/api?day=2
```### [Node.js 🐢🚀](https://npmjs.com/package/@ultirequiem/add-params)
```javascript
import { addParams } from "@ultirequiem/add-params";
```### [Browser 🌐](https://developer.mozilla.org/en-US/docs/Glossary/Browser)
You can use any [CDN](https://en.wikipedia.org/wiki/Content_delivery_network) 🔥
Eg 👉
[ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) ↔️
[SkyPack](https://cdn.skypack.dev/@ultirequiem/add-params) 🆚
[Script Tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) ↔️
[JSDelivr](https://cdn.jsdelivr.net/npm/@ultirequiem/add-params)## Documentation
Is hosted on
[Deno Doc](https://doc.deno.land/https://deno.land/x/add_params/mod.ts) 📄## Support
Open an Issue, I will check it a soon as possible 👀
If you want to hurry me up a bit
[send me a tweet](https://twitter.com/UltiRequiem) 😆Consider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like
my work 🙏Don't forget to start the repo ⭐
## Authors
[Eliaz Bobadilla](https://ultirequiem.com) - Creator and Maintainer 💪
See also the full list of
[contributors](https://github.com/UltiRequiem/add_params/contributors) who
participated in this project ✨## Versioning
We use [Semantic Versioning](http://semver.org). For the versions available, see
the [tags](https://github.com/UltiRequiem/add_params/tags) 🏷️## Licence
Licensed under the MIT License 📄