parse-lyric
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i parse-lyric

Weekly Downloads

3

Version

0.0.1

License

MIT

Unpacked Size

41.3 kB

Total Files

19

Last publish

Collaborators

  • snowingfox