Socket
Socket
Sign inDemoInstall

@playnode/react-music-components

Package Overview
Dependencies
73
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @playnode/react-music-components

Browser JS to render a music website from JSON data description.


Version published
Maintainers
1
Created

Readme

Source

Playnode React Music Components

Browser JS to render a music website from JSON data description.

See example upstream project using this component library that you can fork, and customise for your own website.

See this example as a demo provided & customised by project developer.

Usage summary

Install the package:

npm install @playnode/react-music-components

Add the App component to a React project. See full example in upstream project linked above.

import React from "react";
import ReactDOM from "react-dom";
import { App } from "@playnode/react-music-components";

const config = {
    "displayName": "Playnode Music Website",
    "firstName": "",
    "lastName": "",
    "city": "",
    "country": "",
    "avatar": "images/profile-avatar-200x200.png",
    "banner": "images/profile-banner-1240x260.jpg",
    "description": "Hello, World!",
    "infoHtml": "",
    "links": [
        {
            "title": "Playnode.org",
            "href": "http://playnode.org/"
        }
    ],
    "tracks": [
        {
            "artist": "Steven Robertson",
            "title": "Test",
            "pubDate": "Sat, 24 Jun 2017 13:21:15 GMT",
            "slug": "test",
            "stream": "test.mp3",
            "duration": 0,
            "waveform": ""
        }
    ]
};

ReactDOM.render(<App data={config}/>, document.getElementById('root'));

License

MIT License

FAQs

Last updated on 26 Sep 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc