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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@noxone/vuepress-plugin-music-player

v1.2.2

Published

this is a tiny but awesome musicPlayer for vuepress

Readme

0. 欢迎在vuepress中使用noxone-music-player

嗯... 这是我的第一个音乐播放器插件,基于2020年自己写的音乐播放器demo进行重构, 喜欢的话,这里是Github传送门,求求大佬在右上角点个⭐⭐噢,您的支持就是我创作的最大动力!

效果图如下:

播放器展开

img

播放器隐藏

img

交互效果强烈推荐到我的小破站去体验喔~

喏,这里是传送门:NOxONE

1. 导入

npm i @noxone/vuepress-plugin-music-player

2. 配置

// ./docs/.vuepress/config.js
module.exports = {
  // ...
  plugins: [
    [
      "vuepress-plugin-music-player", // 导入noxone播放器
      {
        musicList: [ // 音乐列表 必填
          { 
            cover: 'https://dragon-chen777.github.io/Music-player/img/Mojito.jpg', // 音乐封面 
            title: 'Mojito', // 音乐标题
            link: 'https://dragon-chen777.github.io/Music-player/music/Mojito.mp3', // 音乐路径
          },
          // 或者,在 ./docs/.vuepress/public文件夹存放资源,使用相对路径的方式配置
          { 
            cover: '/imgs/Mojito.jpg', 
            title: 'Mojito',
            link: '/music/Mojito.mp3',
          },
        ],
      containerBg: '#fff', // 播放器背景色 可选
      themeColor: '#0cdae9', // 主题色 可选
      musicInfoBg: 'rbga(255,255,255)', // 音乐信息背景 可选
      musicTitleColor: '#000', // 音乐标题颜色 可选
      zoom: 0.7, // 播放器缩放大小 可选(默认移动端尺寸缩小一半)
      bottom: '50px', // 播放器的bottom值 可选(默认采用fiex定位,bottom为50px)
    }
  ]
}

3.新增

  1. 向全局window挂载noxone以实现事件发布订阅 订阅播放事件
window.noxone.Bus.$on(
	'playNoxoneMusic',
	function musicPlay(){
		_this.playMusic('play')
	}
)

订阅上下切换歌曲事件

    window.noxone.Bus.$on(
  'playPreNoxoneMusic',
  function musicPlay(){
    _this.playMusic('pre')
  }
)
window.noxone.Bus.$on(
  'playNextNoxoneMusic',
  function musicPlay(){
    _this.playMusic('next')
  }
)

意味着,您可以通过例如window.onxone.$emit('playNoxoneMusic')的方式让音乐组件播放 2. 修复移动端noxoneMuiscPlayer组件初始显示尺寸异常问题