1.0.0 • Published 7 years ago

@f/format-qs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

format-qs

Build status Git tag NPM version Code style

Format a query string from a key-value object

Installation

$ npm install @f/format-qs

Usage

var formatQs = require('@f/format-qs')

formatQs({a: 1, b: 2}) === 'a=1&b=2'

API

formatQs(params)

  • params - An object consisting of key/value pairs to be encoded into a URL query string

Returns: An encoded query string from the key/values of params.

License

MIT