Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
misyobun committed Jan 25, 2020
1 parent 56a9284 commit f43bdc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@ MetaRod is a lightweight url meta data parser library.

![e5b4c37582a718534d2e83ea48cea18c](https://user-images.githubusercontent.com/509448/72453120-f123cf00-3801-11ea-8947-a1540f91b27e.gif)

## Usage

```
MetaRod().build("https://www.vagrantup.jp/entry/2020/01/08/012539").og(completion: { result in
// Do what you want to do with your meta data.
}) { error in
// Error
}
```
or
```
DispatchQueue.global().async {
do {
let result = try MetaRod().build("https://www.vagrantup.jp/entry/2020/01/08/012539").og()
DispatchQueue.main.async {
// Do what you want to do with your meta data.
}
} catch {
// Error
}
}
```

## Installation

### CocoaPods
Expand Down

0 comments on commit f43bdc0

Please sign in to comment.