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

https://github.com/alexcarpenter/object-to-querystring

Convert a object into a query string
https://github.com/alexcarpenter/object-to-querystring

composition currying fp point-free

Last synced: 21 days ago
JSON representation

Convert a object into a query string

Awesome Lists containing this project

README

        

# object-to-querystring

> Convert a object into a query string

## Installation

```bash
$ npm i @alexcarpenter/object-to-querystring
```

## Usage

```js
import objectToQuerystring from '@alexcarpenter/object-to-querystring';

const obj = {
page: '2',
size: '10',
total: '200',
};

objectToQuerystring(obj); //=> ?page=2&size=10&total=200
```

## Related

- [querystring-to-object](https://github.com/alexcarpenter/querystring-to-object)

## License

[MIT](LICENSE).