@social-embed/lib
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1-next.12 • Public • Published

    @social-embed/lib · GitHub license npm version

    Start

    To use the lib you can do:

    npm i @social-embed/lib
    # or
    yarn add @social-embed/lib

    Then import and use as such:

    import {getYouTubeIdFromUrl} from '@social-embed/lib';
    
    console.log(getYouTubeIdFromUrl('https://www.youtube.com/watch?v=Bd8_vO5zrjo'));
    // output: Bd8_vO5zrjo

    If you support ESM / Urls, you can also import via like this:

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

    API reference

    https://social-embed.git-pull.com/api/

    Try

    Install

    npm i @social-embed/lib

    DownloadsWeekly Downloads

    261

    Version

    0.0.1-next.12

    License

    MIT

    Unpacked Size

    97.8 kB

    Total Files

    50

    Last publish

    Collaborators

    • avatar