Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/poppinlp/bv2av
把 bilibili 新的 bv 号转回旧的 av 号
https://github.com/poppinlp/bv2av
bilibili bv2av
Last synced: 2 months ago
JSON representation
把 bilibili 新的 bv 号转回旧的 av 号
- Host: GitHub
- URL: https://github.com/poppinlp/bv2av
- Owner: poppinlp
- License: gpl-3.0
- Created: 2020-03-24T03:04:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T21:24:12.000Z (over 1 year ago)
- Last Synced: 2024-10-29T08:25:12.059Z (3 months ago)
- Topics: bilibili, bv2av
- Language: JavaScript
- Homepage: https://poppinlp.com/bv2av/
- Size: 758 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bv2av
[![Build Status][ci-img]][ci-url]
[![Dependency Status][dep-img]][dep-url]
[![Dev Dependency Status][dev-dep-img]][dev-dep-url]
[![NPM version][npm-ver-img]][npm-url]
[![NPM downloads][npm-dl-img]][npm-url]
[![NPM license][npm-lc-img]][npm-url]把 bilibili 新的 bv 号转回旧的 av 号。支持[网页端直接使用](https://poppinlp.com/bv2av/)。
欢迎 STAR,欢迎 PR >.<
## Install
```shell
npm i bv2av
```## CLI
```shell
bv2av --bv=xxxxx --all
````--all` 参数可以让我们获取到更多视频的相关信息,如果没有的话则只返回 av 号。
## Module
模块导出了两个方法,更详细的内容,可以看 [`types/index.d.ts`](./types/index.d.ts)。
- getBvInfo: 得到这个视频的相关信息,例如标题、封面图等等
- bv2av: 只得到对应的 av 号## Test
```shell
npm test
```[ci-img]: https://img.shields.io/travis/poppinlp/bv2av.svg?style=flat-square
[ci-url]: https://travis-ci.org/poppinlp/bv2av
[dep-img]: https://img.shields.io/david/poppinlp/bv2av.svg?style=flat-square
[dep-url]: https://david-dm.org/poppinlp/bv2av
[dev-dep-img]: https://img.shields.io/david/dev/poppinlp/bv2av.svg?style=flat-square
[dev-dep-url]: https://david-dm.org/poppinlp/bv2av#info=devDependencies
[npm-ver-img]: https://img.shields.io/npm/v/bv2av.svg?style=flat-square
[npm-dl-img]: https://img.shields.io/npm/dm/bv2av.svg?style=flat-square
[npm-lc-img]: https://img.shields.io/npm/l/bv2av.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/bv2av