Skip to content

micro-js/parse-qs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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