Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 418 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 418 Bytes

@xiaohuohumax/lrc-parser

LRC歌词文件解析器

Install

npm i @xiaohuohumax/lrc-parser

Use

import lrcSource from './***.lrc?raw';
import { LrcParser, Lrc } from '@xiaohuohumax/lrc-parser';

const lrcParser = new LrcParser();
const lrc: Lrc = lrcParser.parser(lrcSource);

console.log(JSON.stringify(lrc, undefined, 2));

example

example-node