Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wp-headless/qs-encode
- Owner: wp-headless
- License: mit
- Created: 2019-12-12T00:40:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:50:10.000Z (about 2 years ago)
- Last Synced: 2024-08-08T21:51:21.411Z (5 months ago)
- Topics: browser, isomorphic, javascript, micro, node, qs, querystring, tiny
- Language: JavaScript
- Size: 1.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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