JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q37794F
  • License MIT

CLI tool to preview OpenGraph metadata from web and local servers

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 install

    Usage

    Run directly with Bun

    bun run src/index.ts <url>

    Examples

    Fetch OpenGraph metadata from a website:

    bun run src/index.ts https://github.com

    Fetch from a local development server:

    bun run src/index.ts http://localhost:3000

    Build

    Build the CLI for distribution:

    bun run build

    After building, you can run the compiled version:

    ./dist/index.js https://example.com

    Features

    • 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

    License

    MIT