Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/niradler/url-query-search

A way to interact with url params.
https://github.com/niradler/url-query-search

getparam params query react reactjs search url

Last synced: about 2 months ago
JSON representation

A way to interact with url params.

Awesome Lists containing this project

README

        

#### url-query-search
extract url params.

## Usage

- import urlQueryParams from 'url-query-search';
- urlQueryParams.getParams(); //get all params in object
- urlQueryParams.getParam(paramName); //get param by name
- urlQueryParams.setParam(paramName,value); //set param by name and value
- urlQueryParams.getPathParams(path); //get path params, path="/*/id" *=ignore , return {id}