Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktimsaikia committed Oct 14, 2020
1 parent 1cf9cf6 commit b208fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const fetchMetaData = require('meta-fetcher');
You can optionally set the `userAgent` and `fromEmail` options in request `Header` while fetching the meta-data.

```js
const {fetchMetaData} = require('meta-fetcher');
const fetchMetaData = require('meta-fetcher');

(async () => {
const result = await fetchMetaData('https://hoppscotch.io/', {
Expand All @@ -70,7 +70,7 @@ const {fetchMetaData} = require('meta-fetcher');

It can also fetch meta-data from `shortened-url` .For example:
```js
const {fetchMetaData} = require('meta-fetcher');
const fetchMetaData = require('meta-fetcher');

(async () => {
const result = await fetchMetaData('https://bit.ly/2Fj9sNF');
Expand Down

0 comments on commit b208fc7

Please sign in to comment.