Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.01 KB

Readme.md

File metadata and controls

42 lines (27 loc) · 1.01 KB

parse-qs

Build status Git tag NPM version Code style

Query string parser

Installation

$ npm install @f/parse-qs

Usage

var parseQs = require('@f/parse-qs')

parseQs('a=1&b=2') // -> {a: '1', b: '2'}

API

parseQs(str)

  • str - Query string (e.g. 'a=1&b=2')

Returns: Returns object of name/value pairs.

License

MIT