Package Exports
- append-query
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (append-query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
append-query
Append querystring params to a URL.
Installation
npm install append-query
Usage
Example
var appendQuery = require('append-query')
appendQuery('http://example.com/foo', 'bar=baz&beep=boop')
// http://example.com/foo?bar=baz&beep=boop
appendQuery('http://example.com/?foo=bar', 'hello=world')
// http://example.com/?foo=bar&hello=world
appendQuery('http://example.com/', { beep: 'boop' })
// http://example.com/?beep=boop
Running Tests
npm test
License
Copyright 2014 Cameron Lakenen