1.1.3 • Published 6 years ago

@lodgify/get-query-string v1.1.3

Weekly downloads
58
License
MIT
Repository
github
Last release
6 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

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago