LyricParser
Description
A JavaScript plugin for parser Lyric
Features
-
⚡ Easy to use: Justplay()
togglePlay()
stop()
seek()
-
🦾 Type Strong: Written in Typescript, with TS Docs
🦄 Usage
import { ref } from 'vue'
import Lyric from 'LyricParser'
const lrc = await getLyric()
const lyric = ref<any>(lrc.lrc, handleLyric)
function handleLyric({curLineNum, txt}): void {
console.log(curLineNum, txt)
}