npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

podkast-audio-player

v1.5.2

Published

PodKast Audio Player is a customizable React component for playing audio files with a user-friendly interface. It provides features like play/pause, volume control, skip forward/backward, loop, shuffle, and progress tracking.

Downloads

10

Readme

Podkast Audio Player

PodKast Audio Player is a customizable React component for playing audio files with a user-friendly interface. It provides features like play/pause, volume control, skip forward/backward, loop, shuffle, and progress tracking.

Features

  • Play/pause audio
  • Adjust volume
  • Skip forward/backward
  • Loop and shuffle modes
  • Progress tracking
  • Customizable color theme

Installation

You can install the Podkast Audio Player library via npm:

npm install podkast-audio-player

Or you can install via yarn

yarn add podkast-audio-player

Usage

To use the PodKast Audio Player component in your React application, simply import it and pass the necessary props:

import React from 'react';
import AudioPlayer from 'podkast-audio-player';

function MyComponent() {
  // Define your array of audio data
  const audioData = [
    {
      audioSrc: 'path/to/audio1.mp3',
      title: 'Title 1',
      artists: 'Artist 1',
      cover: 'path/to/cover1.jpg'
    },
    {
      audioSrc: 'path/to/audio2.mp3',
      title: 'Title 2',
      artists: 'Artist 2',
      cover: 'path/to/cover2.jpg'
    },
    // Add more audio objects as needed
  ];

  return (
    <div>
      <AudioPlayer songs={audioData} theme="light" />
    </div>
  );
}

export default MyComponent;

Props

  • songs (required): An array of objects representing each audio track. Each object should have the following properties:
    • audioSrc (string): The path to the audio file.
    • title (string): The main title or name of the audio track.
    • artists (string): Additional information about the audio track (e.g., artist name).
    • cover (string): The path to the cover image associated with the audio track.
  • theme (optional): Specifies the color theme of the player. Can be either "light" or "dark". Defaults to "light".

Documentation

For a full documentation, visit podkast-audio-player

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

Podkast Audio Player is licensed under the MIT License.