url-append

0.2.1 • Public • Published

[![NPM version][npm-image]][npm-url] url-append Dependency Status

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&param2=value2&param3=value3

With a Querystring

var urlAppend = require('url-append');
 
urlAppend('http://www.example.com?param1=param2', 'param2=value2&param3=value3');
// results in http://www.example.com?param1=value1&param2=value2&param3=value3

Release History

  • 0.1.0 Initial Release

Contributors

  • Bastian "hereandnow" Behrens

License

Copyright (c) 2015 Valiton GmbH Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i url-append

Weekly Downloads

15

Version

0.2.1

License

MIT

Unpacked Size

2.2 kB

Total Files

3

Last publish

Collaborators

  • hereandnow