1.0.1 • Published 6 years ago
lrc2json v1.0.1
lrc2json
A simple module that parses LRC format to JSON object.
Install
Using npm
npm install --save lrc2json
Usage
const lrc2json = require('lrc2json');
let lrcJSON = lrc2json(lrcString);
Sample Input
[ti: Title]
[ar: Artist]
[au: Author]
[al: Album]
[by: Creator]
[length: 03:00]
[re: Editor]
[ve: Version]
[00:00.00]Begin
[03:00.00]End
Sample Output
{
"ti": "Title",
"ar": "Artist",
"au": "Author",
"al": "Album",
"by": "Creator",
"length": "03:00",
"re": "Editor",
"ve": "Version",
"lyrics": [
{
"time": "00:00.00",
"text": "Begin"
},
{
"time": "03:00.00",
"text": "End"
}
]
}