Extract a query string from a given URL
npm i @three11/extract-query-arg
or
yarn add @three11/extract-query-arg
import extractQueryArg from '@three11/extract-query-arg';
// Get name parameter from current browser URL
extractQueryArg('name');
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007