@hypst/lrc-parser
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

LRC-Parser

Parsing LRC file.

Installation

npm install @hypst/lrc-parser

This module works on browsers as well.

Usage

parse(lrc)

Parameters:

Parameter Description
lrc LRC source file, as string.

Return value:

An object with 2 properties.

Property Description
info An array including parse info, warnings and errors.
lines An array including lines of lyric.

Item of info:

Property Description
type Fatal, Error, Warning or Info.
message Message.
line (Optional) The line where the info occurs.
column (Optional) The column where the info occurs.

Item of lines:

Property Description
time An HMSTime object.
text Lyric text.

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

/@hypst/lrc-parser/

    Package Sidebar

    Install

    npm i @hypst/lrc-parser

    Weekly Downloads

    2

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    14.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • crindzebra