@pcrab/pblive-lib
v0.0.5
Published
A simple bilibili live danmu lib
Downloads
1
Readme
PBlive
This is a simple bilibili live helper library, highly inspired by danmu-console-helper.
Usage
import open from "@pcrab/pblive-lib"
const roomId = 81004; // https://live.bilibili.com/81004
open(roomId);
You can add handlers for different events.
import open from "@pcrab/pblive-lib"
open(81004, {
onDanmuMsg: (danmu) => {
console.log(JSON.stringify(danmu));
},
});