Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@dw/wx-audio
Advanced tools
微信公众号音乐播放器
http://www.daiwei.org/components/wx-audio/
npm 安装
npm install @dw/wx-audio
import WxAudio from '@dw/wx-audio/lib/wx-audio.css'
import WxAudio from '@dw/wx-audio'
普通资源引入,先将es5文件下的目录放到自己的项目中,然后根据路径引入
<link href="./wx-audio.css" rel="stylesheet">
<script type="text/javascript" src="wx-audio.js"></script>
var wxAudio = new WxAudio({
ele: '#textaudio1',
title: '河山大好',
disc: '许嵩',
src: 'http://oiq8j9er1.bkt.clouddn.com/%E8%AE%B8%E5%B5%A9%20-%20%E6%B2%B3%E5%B1%B1%E5%A4%A7%E5%A5%BD1.mp3',
width: '320px',
autoplay: true,
loop: true,
ended: function () {
alert('播放结束')
}
});
// 实例化的wxAudio可以这样操作
wxAudio.audioPlay() // 播放
wxAudio.audioPause() // 暂停
wxAudio.audioPlayPause() // 播放暂停
wxAudio.showLoading(bool) //显示加载状态 参数bool
wxAudio.audioCut(src,title,disc) 实现音频切换的效果
通过实例化的wxAudio的audioCut(src,title,disc) 实现音频切换的效果 示例代码如下
var src = 'http://oiq8j9er1.bkt.clouddn.com/%E6%9E%97%E4%BF%8A%E6%9D%B0%20-%20%E5%A5%B9%E8%AF%B41.mp3'
var title = '她说'
var disc = '林俊杰'
wxAudio.audioCut(src, title, disc)
FAQs
wx-audio
The npm package @dw/wx-audio receives a total of 1 weekly downloads. As such, @dw/wx-audio popularity was classified as not popular.
We found that @dw/wx-audio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.