1.1.3 • Published 5 years ago

@lodgify/get-query-string v1.1.3

Weekly downloads
58
License
MIT
Repository
github
Last release
5 years ago

Get an http query string from a parameters object

A simple helper to get a query string from an object.

Install

$ npm install @lodgify/get-query-string

Usage

import { getQueryString } from '@lodgify/get-query-string';

const parameters = {
      test: 1,
      hello: 'hello',
      dontIncludeEmptyStrings: '',
      dontIncludeUndefined: undefined,
      include0: 0,
      includeFalse: false,
    }

getQueryString(parameters);

Output

?test=1&hello=hello&include0=0&includeFalse=false

Contributing

See contributing.

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago