Skip to content

node-modules-list/node-append-query

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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

Change Log

  • 1.1.0
    • add support for recursive serialization of nested objects
    • add support for arrays as properties

License

(The MIT License)

Copyright 2014 Cameron Lakenen

About

Append querystring params to a URL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%