A simple helper to get a query string from an object.
$ npm install @lodgify/get-query-string
import { getQueryString } from '@lodgify/get-query-string';
const parameters = {
test: 1,
hello: 'hello',
dontIncludeEmptyStrings: '',
dontIncludeUndefined: undefined,
include0: 0,
includeFalse: false,
}
getQueryString(parameters);
?test=1&hello=hello&include0=0&includeFalse=false
See contributing.