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

0.1.0-next.7 • 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

Package Sidebar

Install

npm i @social-embed/lib

Weekly Downloads

404

Version

0.1.0-next.7

License

MIT

Unpacked Size

22.4 kB

Total Files

34

Last publish

Collaborators

  • tony