Skip to content

Commit

Permalink
Update readme on fragmentIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1626 committed Dec 1, 2019
1 parent 4191a09 commit 65eb3fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,19 @@ queryString.parseUrl('https://foo.bar?foo=bar');
//=> {url: 'https://foo.bar', query: {foo: 'bar'}}
```

#### parseFragmentIdentifier

Extracts the fragment identifier from url

Type: `boolean`\
Default: `false`

```js
import queryString = require('query-string');

queryString.parseUrl('https://foo.bar?foo=bar#xyz', {parseFragmentIdentifier: true});
//=> {url: 'https://foo.bar', query: {foo: 'bar'}, fragmentIdentifier: 'xyz'}
```

## Nesting

Expand Down

0 comments on commit 65eb3fe

Please sign in to comment.