Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nescalante/queryparam
https://github.com/nescalante/queryparam
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nescalante/queryparam
- Owner: nescalante
- License: mit
- Created: 2017-09-09T15:23:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T15:31:23.000Z (over 7 years ago)
- Last Synced: 2024-08-09T09:36:52.444Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# queryparam
## Install
```
npm install queryparam
```## Usage
```js
const queryparam = require('queryparam');
const fooParams = queryparam('foo', 'http://www.example.com?foo=bar&foo=baz'); // [ 'bar', 'baz' ]
```## API
### `queryparam(param, url?)`
Returns the query params that matches the `param` parameter in an array.
## License
MIT