2.0.2 • Published 1 year ago

embedgenerator v2.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Version package DL TOTAL LATEST RELEASE ALL CONTRIBUTOR Test code\ NPM

embedGenerator

this package create embed url with link

documentation

embedgenerator is documented in here

Supported site

sitetypesupported
spotifytracklist,track
deezertracklist,track✅(only on node)
youtubeplaylist,video,live

exemples:

youtube

import { YoutubeGenerator } from "embedgenerator";

YoutubeGenerator.embed("https://www.youtube.com/watch?v=dQw4w9WgXcQ").then(
  (url) => {
    console.log(url);
    //output: https://youtube.com/embed/dQw4w9WgXcQ
  }
);

spotify

import { SpotifyGenerator } from "embedgenerator";

SpotifyGenerator.embed(
  "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT?si=8485dc026c1e4205"
).then((url) => {
  console.log(url);
  //output: https://open.spotify.com/embed/track/4cOdK2wGLETKBW3PvgPWqT?utm_source=oembed
});

deezer

import { DeezerGenerator } from "embedgenerator";

DeezerGenerator.embed("https://deezer.page.link/KsnNy8jDSAzvD4GA7").then(
  (url) => {
    console.log(url);
    //output: https://widget.deezer.com/widget/auto/track/66677621?autoplay=false&radius=true&tracklist=true
  }
);

How to contribute

You can contribute with fork this project.

Make changelog

After you have finished your work, you must make a changelog using npx changeset.
After you have make your changelog create a pull request with your commited changelog inside .changeset.
That it !

Run test

npm run test

Licence

This project is under licence MIT

2.0.2

1 year ago

2.0.1

1 year ago

1.0.1

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago