https://github.com/0blu/url-get-builder
A lightweight GET parameter builder for nodejs that escapes keys and the values
https://github.com/0blu/url-get-builder
Last synced: 10 months ago
JSON representation
A lightweight GET parameter builder for nodejs that escapes keys and the values
- Host: GitHub
- URL: https://github.com/0blu/url-get-builder
- Owner: 0blu
- Created: 2016-05-15T11:07:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-15T11:07:43.000Z (about 10 years ago)
- Last Synced: 2025-07-09T06:03:09.263Z (11 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-get-builder
A simple tool to build URLs with GET parameters
``` sh
npm i --save url-get-builder
```
## Example
``` js
const GETBuilder = require('url-get-builder');
let redirect = new GETBuilder('http://example.com/')
.add('someurl', 'https://google.com/')
.getURL();
console.log(redirect);
//http://example.com/?someurl=https%3A%2F%2Fgoogle.com%2F
```