build-query-string
v1.2.1
Published
Build url query string from object
Downloads
50
Maintainers
Readme
build-query-string
The easiest way to convert an object to a query string for an API call
Usage
var buildQueryString = require('build-query-string');
console.log(buildQueryString({ user: 12, mobile: 'AT&T', device: 'iPhone' }));
// => "user=12&mobile=AT%26T&device=iPhone"
Installation
With npm do
$ npm i build-query-string --save