2.0.2 • Published 4 years ago

@hypst/lrc-parser v2.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

LRC-Parser

Parsing LRC file.

Installation

npm install @hypst/lrc-parser

This module works on browsers as well.

Usage

parse(lrc)

Parameters:

ParameterDescription
lrcLRC source file, as string.

Return value:

An object with 2 properties.

PropertyDescription
infoAn array including parse info, warnings and errors.
linesAn array including lines of lyric.

Item of info:

PropertyDescription
typeFatal, Error, Warning or Info.
messageMessage.
line(Optional) The line where the info occurs.
column(Optional) The column where the info occurs.

Item of lines:

PropertyDescription
timeAn HMSTime object.
textLyric text.

About HMSTime, see @hypst/time-beat-format.