Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nescalante/queryparam


https://github.com/nescalante/queryparam

Last synced: about 1 month ago
JSON representation

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