Skip to content
This repository has been archived by the owner on Sep 8, 2018. It is now read-only.

Commit

Permalink
Fixed documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
theel0ja committed Feb 11, 2018
1 parent f1394cd commit 71c0032
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Expand Up @@ -6,9 +6,23 @@

## Usage

<!-- ### Use in browser
```html
<script src="https://unpkg.com/getparameterbyname@1.0.0/dist/index.js"></script>
<script>
const url = 'https://www.example.com/search?q=nodejs';
const queryParameterValue = getQueryParameterByName('q', url);
// Print queryParameterValue to console
console.log(queryParameterValue);
</script>
``` -->

### Get query parameter from url
```js
import getQueryParameterByName from './index';
import getQueryParameterByName from 'getqueryparameterbyname';

const url = 'https://www.example.com/search?q=nodejs';

Expand Down

0 comments on commit 71c0032

Please sign in to comment.