New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bv2av

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bv2av - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

20

bin/cli.js

@@ -1,5 +0,23 @@

const assert = require('assert').strict;
#!/usr/bin/env node
const assert = require('assert');
const argv = require('minimist')(process.argv.slice(2));
const { getBvInfo } = require('../');
if (!argv.length || argv.h || argv.help) {
console.log(`
Usage
$ bv2av [<args>]
Options
--bv The bv code
--all Get all bv infomations
-h,--help Show help
Samples
$ bv2av --bv=xxxxxx -all
`);
return;
}
return;
assert.notStrictEqual(argv.bv, undefined, 'Must input bv code!');

@@ -6,0 +24,0 @@ assert.strictEqual(typeof argv.bv, 'string', 'BV code must be a string!');

2

package.json
{
"name": "bv2av",
"version": "0.2.0",
"version": "0.2.1",
"description": "Convert new bv code of bilibili to old av code",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -5,2 +5,4 @@ # bv2av

支持[网页端直接使用](https://poppinlp.com/bv2av/)。
[![Build Status][ci-img]][ci-url]

@@ -33,3 +35,3 @@ [![Dependency Status][dep-img]][dep-url]

With `--all`, we will get all infomations. Without it, we will get the av ID only.
`--all` 参数可以让我们获取到更多视频的相关信息,如果没有的话则只返回 av 号。

@@ -40,9 +42,5 @@ ## Module

- getBvInfo: get some info of the video such as title, cover, e.t.c.
- bv2av: get only av ID of the video.
- getBvInfo: 得到这个视频的相关信息,例如标题、封面图等等
- bv2av: 只得到对应的 av 号
## TODO
- add git page for online search.
## Test

@@ -49,0 +47,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc