Skip to content

micro-js/format-qs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Format a query string from a key-value object

Resources

Stars

Watchers

Forks

Packages

No packages published