@three11/extract-query-arg

Extract query argument from url

Usage no npm install needed!

<script type="module">
  import three11ExtractQueryArg from 'https://cdn.skypack.dev/@three11/extract-query-arg';
</script>

README

GitHub release GitHub issues GitHub last commit Github file size Build Status npm npm Analytics

Extract Query Argument

A vanilla ES2017 module for extracting query arguments from url.

Install

npm i @three11/extract-query-arg

or

yarn add @three11/extract-query-arg

Usage

import extractQueryArg from '@three11/extract-query-arg';

// Get name parameter from current browser URL
extractQueryArg('name');

License

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007