Skip to content

alexcarpenter/object-to-querystring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-to-querystring

Convert a object into a query string

Installation

$ npm i @alexcarpenter/object-to-querystring

Usage

import objectToQuerystring from '@alexcarpenter/object-to-querystring';

const obj = {
  page: '2',
  size: '10',
  total: '200',
};

objectToQuerystring(obj); //=> ?page=2&size=10&total=200

Related

License

MIT.