Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wp-headless/qs-encode

A micro utility for encoding a querystring
https://github.com/wp-headless/qs-encode

browser isomorphic javascript micro node qs querystring tiny

Last synced: about 1 month ago
JSON representation

A micro utility for encoding a querystring

Awesome Lists containing this project

README

        


drone
Coverage Status
npm
Bundle size

# WP-Headless query string encoder

Simple **tiny** package for encoding a query string

## Install

```bash
yarn add @wp-headless/qs-encode
```

## Usage

```javascript
import qsEncode from 'wp-headless/qs-encode';

qsEncode({ foo:'hello', bar:[1,2,3], baz:true });
//=> 'foo=hello&bar[]=1&bar[]=2&bar[]=3&baz=true'

```

MIT