Skip to content

Commit

Permalink
docs: add instructions for browser usage to parse current page (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
toufic-m authored and adampash committed Jan 30, 2019
1 parent 4ab5013 commit 0668f5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ yarn add @postlight/mercury-parser
import Mercury from '@postlight/mercury-parser';

Mercury.parse(url).then(result => console.log(result););

// NOTE: When used in the browser, you can omit the URL argument
// and simply run `Mercury.parse()` to parse the current page.

```

The result looks like this:
Expand Down

0 comments on commit 0668f5d

Please sign in to comment.