parse-query-params

1.1.1 • Public • Published

parse-query-params

Takes an array of objects containing key / value pairs and returns them in form of query string.

Installation

Install the module in your repo using Node Package Manager.

npm install parse-query-params

Example usage

const pqp = require('parse-query-params');

const params = [
	{
		"name": "foo1",
		"value": "bar1"
	},
	{
		"name": "foo2",
		"value": "bar2"
	}
];

console.log(pqp(params));

Outputs:

foo1=bar1&foo2=bar2

Readme

Keywords

Package Sidebar

Install

npm i parse-query-params

Weekly Downloads

0

Version

1.1.1

License

GPL-3.0

Unpacked Size

36.8 kB

Total Files

4

Last publish

Collaborators

  • nullish