https://github.com/alexcarpenter/querystring-to-object
Convert a query string into an object
https://github.com/alexcarpenter/querystring-to-object
composition currying fp
Last synced: about 2 months ago
JSON representation
Convert a query string into an object
- Host: GitHub
- URL: https://github.com/alexcarpenter/querystring-to-object
- Owner: alexcarpenter
- License: mit
- Created: 2019-11-27T17:40:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:49:57.000Z (almost 3 years ago)
- Last Synced: 2025-03-16T06:46:51.226Z (7 months ago)
- Topics: composition, currying, fp
- Language: JavaScript
- Homepage: https://npm.im/@alexcarpenter/querystring-to-object
- Size: 691 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# querystring-to-object
> Convert a query string into an object
## Installation
```bash
$ npm i @alexcarpenter/querystring-to-object
```## Usage
```js
import querystringToObject from '@alexcarpenter/querystring-to-object';const qs = '?page=2&size=10&total=200';
querystringToObject(qs); //=> { page: '2', size: '10', total: '200' }
```## Related
- [object-to-querystring](https://github.com/alexcarpenter/object-to-querystring)
## License
[MIT](LICENSE).