thep0y / lsar

斗鱼、B站、虎牙、抖音直播源解析器
MIT License
63 stars 4 forks source link

如果是从源码编译的话, 是不是没有 lsar 命令 #4

Closed snowman closed 1 year ago

snowman commented 1 year ago
% git clone https://github.com/thep0y/lsar
% cd lsar
% yarn

% LOG_LEVEL=1 yarn build
yarn run v1.22.19
$ tsc && node ./dist/build.js
15:31:37.966 DEB > 原权限 33261
Done in 1.14s.

% node dist/main.js
Usage: lsar [options] [command]

能够获取斗鱼、B站直播源的命令行工具

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  douyu <roomID>  解析斗鱼直播源(支持靓号)
  bili [options]  解析B站直播源。
                  可以使用房间ID或房间链接作为传入参数。
  help [command]  display help for command
thep0y commented 1 year ago

需要 link 一下:

npm i
npm build
npm link -g

yarn 的与 link 相同的命令我忘了,你可以自己搜索一下。

snowman commented 1 year ago

谢谢, 直接 yarn link 就行了 :)