Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 3.29 KB

README.md

File metadata and controls

81 lines (62 loc) · 3.29 KB

🔍 OGLens

Tools for viewing OGP

$ curl https://ogp.me | og
+-----------------+-----------------------------------------------------------------------------------------+
| property        | content                                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:title        | Open Graph protocol                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:type         | website                                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:url          | https://ogp.me/                                                                         |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image        | https://ogp.me/logo.png                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:type   | image/png                                                                               |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:width  | 300                                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:height | 300                                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:alt    | The Open Graph logo                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:description  | The Open Graph protocol enables any web page to become a rich object in a social graph. |
+-----------------+-----------------------------------------------------------------------------------------+

How to install

For MacOS

$ brew install uzimaru0000/tap/oglens

Use cargo

$ cargo install oglens

How to use

USAGE

og [OPTIONS] [PATH]

OPTIONS

-h, --help
        Print help information

-j, --json
        Displayed in JSON format

-p, --prefix <PREFIX>
        Prefix settings other than OG. Specify key separated by colons. ex:
        --prefix=twitter:name

-V, --version
        Print version information

ARGS

<PATH>  HTML file path