/to-querystring

Simple function that convert js object and array to a queryString

Primary LanguageJavaScriptMIT LicenseMIT

Build Status

to-querystring function

Simple function that convert js object and array to a queryString.

Installation

  npm install to-querystring

Getting started

import toQueryString from 'to-querystring';

const queryString = toQueryString({
  test: 'test1'
});
// queryString = 'test=test1'

Development

  • npm run build - produces production version
  • npm test - run the tests