Socket
Socket
Sign inDemoInstall

spotify-audio-element

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-audio-element

A custom element for the Spotify player with an API that aims to match the `` API


Version published
Weekly downloads
137
decreased by-40.69%
Maintainers
2
Weekly downloads
 
Created
Source

<spotify-audio>

NPM Version NPM Downloads jsDelivr hits (npm) npm bundle size

A custom element for the Spotify player with an API that aims to match the <audio> API.

Example

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>
<spotify-audio controls src="https://open.spotify.com/artist/246dkjvS1zLTtiykXe5h60"></spotify-audio>

Install

First install the NPM package:

npm install spotify-audio-element

Import in your app javascript (e.g. src/App.js):

import 'spotify-audio-element';

Optionally, you can load the script directly from a CDN using jsDelivr:

<script type="module" src="https://cdn.jsdelivr.net/npm/spotify-audio-element@0.1/+esm"></script>

This will register the custom elements with the browser so they can be used as HTML.

Keywords

FAQs

Package last updated on 14 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc