object-to-querystring

Convert an object into a query string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
object-to-querystring
201.0.85 years ago5 years agoMinified + gzip package size for object-to-querystring in KB

Readme

Version npm
object-to-querystring
Convert an object into a query string.

Example

import objectToQuery from 'object-to-querystring';

const params = {
  name: 'Justin',
  number: 12345,
};
const querystring = objectToQuery(params);
/*
 querystring === '?name=Justin&number=12345'
*/