Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 号

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