Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

embedgenerator

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embedgenerator

create url embed for spotify,deezer,youtube,etc...!

Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

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
youtubeplaylist,video,live

exemples:

youtube

const { YoutubeGenerator } = require("embedgenerator");

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

spotify

const { SpotifyGenerator } = require("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

const { DeezerGenerator } = require("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 and add pull request

Run test

npm run test

Licence

This project is under licence ISC

Keywords

spotify

FAQs

Package last updated on 18 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts