Installation

Quick Start

Installing via Package Managers

Terminal window
npm i @social-embed/lib
Terminal window
yarn add @social-embed/lib
Terminal window
pnpm add @social-embed/lib

Using a CDN

For environments that support ES modules from remote sources (e.g., online sandbox environments), you can import the library directly:

import { getYouTubeIdFromUrl } from "https://www.unpkg.com/@social-embed/lib?module";
import { getYouTubeIdFromUrl } from "https://cdn.skypack.dev/@social-embed/lib";

Where to Next?

  • Head over to the Playground section to explore demos and examples.