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
- Host: GitHub
- URL: https://github.com/alexcarpenter/object-to-querystring
- Owner: alexcarpenter
- License: mit
- Created: 2019-11-28T15:02:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:53:59.000Z (over 2 years ago)
- Last Synced: 2025-03-12T06:20:03.233Z (about 2 months ago)
- Topics: composition, currying, fp, point-free
- Language: JavaScript
- Homepage: https://npm.im/@alexcarpenter/object-to-querystring
- Size: 634 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).