Pcrab / pblive-lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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));
    },
});

About

License:MIT License


Languages

Language:TypeScript 99.4%Language:Shell 0.6%