An open API service indexing awesome lists of open source software.

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

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
```