Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.11 KB

Readme.md

File metadata and controls

42 lines (27 loc) · 1.11 KB

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