Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opengraph-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
OpenGraph CLI
A CLI tool to fetch and display OpenGraph metadata from web URLs and local servers.
Installation
bun installUsage
Run directly with Bun
bun run src/index.ts <url>Examples
Fetch OpenGraph metadata from a website:
bun run src/index.ts https://github.comFetch from a local development server:
bun run src/index.ts http://localhost:3000Build
Build the CLI for distribution:
bun run buildAfter building, you can run the compiled version:
./dist/index.js https://example.comFeatures
- Fetch OpenGraph metadata from any URL
- Supports both remote URLs and local servers
- Color-coded output for easy reading
- Fast execution with Bun runtime
- TypeScript support
OpenGraph Properties Displayed
- Title
- Description
- Image
- URL
- Type
- Site Name
- Locale
- All other custom OG properties
Requirements
- Bun runtime
License
MIT