
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
npm i douyu-api
import { video } from "douyu-api";
video.parseVideo(url);
video函数列表(斗鱼视频相关)getDanmu获取原始视频弹幕,如果你想获取完整视频弹幕,推荐直接使用下一个getVideoDanmu函数
参数:
vid (string): 视频 IDstartTime (number): 开始时间endTime (number, 可选): 结束时间,默认为 -1返回:
Promise<any>: 弹幕数据getVideoDanmu获取视频所有弹幕,如果你想转为 b 站兼容的弹幕格式,使用convert2Xml函数
参数:
vid (string): 视频 ID返回:
Promise<DanmuItem[]>: 弹幕项列表parseVideo解析视频页。
参数:
url (string): 视频 URL返回:
Promise<Video>: 视频数据getVideos获取所有分 p 视频。
参数:
videoId (string): 视频 IDupId (string): 上传者 ID返回:
Promise<object>: 视频列表数据getStreamUrls获取视频流。
参数:
data (string): 请求数据,使用parseVideo返回的decodeData参数返回:
Promise<object>: 视频流数据getReplayList获取回放视频列表。
参数:
params (object): 请求参数
up_id (string): 上传者 IDpage (number): 页码limit (number): 每页数量返回:
Promise<object>: 回放视频列表数据getFishBarId获取鱼吧 ID。
参数:
roomId (number): 直播间 ID返回:
Promise<number>: 鱼吧 IDgetFishBarVideoList获取鱼吧视频列表。
参数:
params (object): 请求参数
type (1 | 2): 类型group_id (number): 群组 IDpage (number): 页码lastid (number): 最后一个视频 ID返回:
Promise<object>: 鱼吧视频列表数据live相关函数(直播相关)getRoomInfo获取直播间信息。
参数:
roomId (number): 直播间 ID返回:
Promise<object>: 直播间信息getLiveInfo对斗鱼 getH5Play 接口的封装,用于获取获取直播流
参数:
roomId (number): 直播间 IDFAQs
douyu api
The npm package douyu-api receives a total of 83 weekly downloads. As such, douyu-api popularity was classified as not popular.
We found that douyu-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.