0.0.1 • Published 2 years ago

parse-lyric v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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)
}