Socket
Book a DemoInstallSign in
Socket

discogs-elements

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discogs-elements

html custom elements, web components for discogs

0.0.5
latest
npmnpm
Version published
Weekly downloads
3
-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

Work in progress

discogs-elements

This is an attempt at creating discogs HTML web components in vanilla javascript. It is using the latest browser features and should work nativelly without the need of polyfill in modern browsers.

You can use them like this in any HTML document.

<discogs-label label-id="6785"></discogs-label>
<discogs-label-releases label-id="6785"></discogs-label-releases>

For them to work, you need to import the bit of javascript code in which these elements and their behavior are defined.

You can import the script from a CDN or from the npm package if your are in a npm project.

<script type="module" async src="discogs-elements"></script>

or:

<script type="module" async src="https://cdn.jsdelivr.net/npm/discogs-elements@latest"></script>

Do not forget the type="module" on the script tag, otherwise you'll get an error Uncaught SyntaxError: Cannot use import statement outside a module.

Examples

Examples can be found in the files index.html and test.html.

FAQs

Package last updated on 13 Dec 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.