Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Alan-Liang/avbv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AV <> BV Converter

An AV <> BV converter adapted from a script on the Internet for a website. Unsupported API, use at your own risk.

Usage

const { avFromBv, bvFromAv, avToBv, bvToAv } = require('avbv')
const Av = require('avbv/av')
const Bv = require('avbv/bv')
avFromBv('BV17x411w7KC') // -> 'av170001'
bvToAv('BV17x411w7KC') // -> 'av170001'
Av.fromBv('BV17x411w7KC') // -> 'av170001'
Bv.toAv('bv17x411w7KC') // -> 'av170001'

bvFromAv('170001') // -> 'BV17x411w7KC'
avToBv('av170001') // -> 'BV17x411w7KC'
Av.toBv(170001) // -> 'BV17x411w7KC'
Bv.fromAv(170001n) // -> 'BV17x411w7KC'

License

WTFPL