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

@xizeyoupan/meting

v2.0.7

Published

Wow, such a beautiful html5 music player (with Meting API)

Downloads

218

Readme

Feature

Add support for tencent with jsonp.

More info:

https://github.com/xizeyoupan/MetingJS

Requirement

https://github.com/MoePlayer/APlayer

|Version|API Status|APlayer| |---|---|---| |1.2.x|Supported|| |2.0.x|Latest||

CDN

  • https://cdn.jsdelivr.net/npm/@xizeyoupan/meting@latest/dist/Meting.min.js
  • https://unpkg.com/@xizeyoupan/meting@latest/dist/Meting.min.js

Quick Start

<!-- require APlayer -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

<meting-js
	server="netease"
	type="playlist"
	id="60198">
</meting-js>

https://music.163.com/#/playlist?id=60198

<meting-js
	auto="https://y.qq.com/n/yqq/song/001RGrEX3ija5X.html">
</meting-js>

https://y.qq.com/n/yqq/song/001RGrEX3ija5X.html

<meting-js
	name="rainymood"
	artist="rainymood"
	url="https://rainymood.com/audio1110/0.m4a"
	cover="https://rainymood.com/i/badge.jpg">
</meting-js>

for self-hosted media

<meting-js
	name="rainymood"
	artist="rainymood"
	url="https://rainymood.com/audio1110/0.m4a"
	cover="https://rainymood.com/i/badge.jpg"
	fixed="true">
	<pre hidden>
		[00:00.00]This
		[00:04.01]is
		[00:08.02]lyric
	</pre>
</meting-js>

Fixed mode with Lyric text

Option

|option |default |description| |:--------------------|:------------:|:----------| |id |require |song id / playlist id / album id / search keyword| |server |require |music platform: netease, tencent, kugou, xiami, baidu| |type |require |song, playlist, album, search, artist| |auto |options |music link, support: netease, tencent, xiami| |fixed |false |enable fixed mode| |mini |false |enable mini mode| |autoplay |false |audio autoplay| |theme |#2980b9 |main color| |loop |all |player loop play, values: 'all', 'one', 'none'| |order |list |player play order, values: 'list', 'random'| |preload |auto |values: 'none', 'metadata', 'auto'| |volume |0.7 |default volume, notice that player will remember user setting, default volume will not work after user set volume themselves| |mutex |true |prevent to play multiple player at the same time, pause other players when this player start play| |lrc-type |0 |lyric type| |list-folded |false |indicate whether list should folded at first| |list-max-height |340px |list max height| |storage-name |metingjs |localStorage key that store player setting|

Documentation for APlayer can be found at https://aplayer.js.org/#/home?id=options

Event

|event |lifecycle |description| |:--------------------|:------------:|:----------| |parse-error |during parse |triggered if err happens| |load |after aplayer has loaded | |

More events refer to APlayer.

Advanced

MetingJS allow you to use self-hosted API, more information about Meting.

<script>
var meting_api='http://example.com/api.php?server=:server&type=:type&id=:id&auth=:auth&r=:r';
</script>

<script src="dist/Meting.min.js"></script>

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer 11
  • Microsoft Edge

Author

MetingJS © metowolf, Released under the MIT License.

Blog @meto · GitHub @metowolf · Twitter @metowolf · Telegram Channel @metooooo