url-query-search
v0.0.3
Published
extract url params, tested with react app.
Downloads
2
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}