url-append
v0.2.1
Published
Append (additional) URL-Params to a given url
Downloads
14
Readme
[![NPM version][npm-image]][npm-url]
Append (additional) URL-Params to a given url
Install
$ npm install --save url-append
Usage
With an Object
var urlAppend = require('url-append');
urlAppend('http://www.example.com?param1=value1', {param2: 'value2', param3: 'value3'});
// results in http://www.example.com?param1=value1¶m2=value2¶m3=value3
With a Querystring
var urlAppend = require('url-append');
urlAppend('http://www.example.com?param1=param2', 'param2=value2¶m3=value3');
// results in http://www.example.com?param1=value1¶m2=value2¶m3=value3
Release History
- 0.1.0 Initial Release
Contributors
- Bastian "hereandnow" Behrens
License
Copyright (c) 2015 Valiton GmbH Licensed under the MIT license.