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

@daelui/dmplayer

v1.0.16

Published

* <a href="http://www.daelui.com/daelui/dmplayer/demo/index.html" target="_blank">http://www.daelui.com/daelui/dmplayer/demo/index.html</a> * <a href="http://daelui-dwas.gitee.io/dmusday/index.html" target="_blank">代码开发提神音乐歌单分享</a>

Downloads

28

Readme

DMPlayer

演示地址

  • http://www.daelui.com/daelui/dmplayer/demo/index.html
  • 代码开发提神音乐歌单分享

介绍

  • DMPlayer(Dog Music Player) - 狗狗音乐播放器
  • 可在Web页面使用,支持script引用与npm模式 - 可自定义布局(参照示例自行修改),默认提供:mode: standard(标准,用于pc端)、mini(迷你,用于移动端)
  • 可自行扩展
  • 功能说明:
  1. 播放列表展示:歌曲、歌手、专辑、时长
  2. 封面展示
  3. 歌词展示
  4. 播放进度展示与调整
  5. 音量调节与静音切换
  6. 播放模式设置:列表循环、随机播放、单曲循环、顺序播放

软件架构

  • SolidJS + ES6

安装步骤

npm install @daelui/dmplayer --save

使用说明

1. npm
<div class="player"></div>
import '@daelui/dmplayer/dist/style/dmplayer.css'
import DMPlayer from '@daelui/dmplayer'
new DMPlayer('.player', {
  sources: [
    {
      name: '回心转意',
      singer: '黑龙',
      url: `./assets/audio/回心转意 - 黑龙.mp3`,
      cover: './images/cover.jpg',
      album: '回心转意',
      duration: 297
    },
    {
      name: 'Faded',
      singer: 'Alan Walker',
      url: `./assets/audio/Faded - Alan Walker.mp3`,
      duration: 212
    }
  ]
})
2. script
<link rel="stylesheet" href="dmplayer/dist/style/dmplayer.css">
<script src="dmplayer/dist/dmplayer.all.js"></script>
<div class="player"></div>
new DMPlayer('.player', {
  sources: [
    {
      name: '回心转意',
      singer: '黑龙',
      url: `./assets/audio/回心转意 - 黑龙.mp3`,
      cover: './images/cover.jpg',
      album: '回心转意',
      duration: 297
    },
    {
      name: 'Faded',
      singer: 'Alan Walker',
      url: `./assets/audio/Faded - Alan Walker.mp3`,
      duration: 212
    }
  ]
})

文件说明

  1. dmplayer.all.js:包含slidjs与solid-js/web所有子模块
  2. dmplayer.standard.js:包含slidjs与solid-js/web部分使用的子模块
  3. dmplayer.pure.js:排除了slidjs,使用时需安装slidjs