0.0.1 • Published 2 years ago
parse-lyric v0.0.1
LyricParser
Description
A JavaScript plugin for parser Lyric
Features
- ⚡ Easy to use: Just
play()
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)
}
0.0.1
2 years ago