{"id":16454582,"url":"https://github.com/lyswhut/lrc-file-parser","last_synced_at":"2025-03-16T17:37:02.896Z","repository":{"id":44442856,"uuid":"147773325","full_name":"lyswhut/lrc-file-parser","owner":"lyswhut","description":"Javascript-based lrc file parser","archived":false,"fork":false,"pushed_at":"2023-04-23T11:29:00.000Z","size":4278,"stargazers_count":79,"open_issues_count":1,"forks_count":27,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T15:58:54.259Z","etag":null,"topics":["javascipt","lrc","lyric","lyric-parser","music-library"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyswhut.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T05:08:53.000Z","updated_at":"2025-03-07T12:44:20.000Z","dependencies_parsed_at":"2024-06-18T18:26:15.536Z","dependency_job_id":"c34949c9-b88c-4126-9c55-0760770e066b","html_url":"https://github.com/lyswhut/lrc-file-parser","commit_stats":{"total_commits":85,"total_committers":3,"mean_commits":"28.333333333333332","dds":0.03529411764705881,"last_synced_commit":"412a21eb78b2e346791504a80ce12406c3ddec1f"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyswhut%2Flrc-file-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyswhut%2Flrc-file-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyswhut%2Flrc-file-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyswhut%2Flrc-file-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyswhut","download_url":"https://codeload.github.com/lyswhut/lrc-file-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826788,"owners_count":20354220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascipt","lrc","lyric","lyric-parser","music-library"],"created_at":"2024-10-11T10:19:21.188Z","updated_at":"2025-03-16T17:37:02.594Z","avatar_url":"https://github.com/lyswhut.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lrc-file-parser\n\nA lrc file parser based javascript\n\n[demo](https://lyswhut.github.io/lrc-file-parser/dist/index.html)\n\n## Installation\n\n- Use npm install\n\n```bash\n# install\nnpm install lrc-file-parser\n```\n\n```js\n// import\nimport Lyric from 'lrc-file-parser'\n```\n\n- Use script link\n\n```html\n\u003cscript src=\"./lrc-file-parser.min.js\"\u003e\u003c/script\u003e\n```\n\n## How to use\n\n```js\nvar lrc = new Lyric({\n  onPlay: function (line, text) { // Listening play event\n    console.log(line, text) // line is line number of current play\n                            // text is lyric text of current play line\n  },\n  onSetLyric: function (lines) { // listening lyrics seting event\n    console.log(lines) // lines is array of all lyric text\n  },\n  offset: 150, // offset time(ms), default is 150 ms\n  playbackRate: 1, // playback rate, default is 1\n  isRemoveBlankLine: true // is remove blank line, default is true\n})\n\nvar extendedLyricStrs = [translationLyricStr]\nlrc.setLyric(lyricStr, extendedLyricStrs) // set lyric, lyricStr is lyric file text, extendedLyricStrs is extended lyric file text array (optional)\n                      // note: Setting the lyrics will automatically pause the lyrics playback\nlrc.play(30000) // play lyric, 30000 is curent play time, unit: ms\nlrc.pause() // pause lyric\n\nlrc.setPlaybackRate(1.2) // set playback rate to 1.2x\n\n```\n\n## CHANGELOG\n\nSee [CHANGELOG.md](https://github.com/lyswhut/lrc-file-parser/blob/master/CHANGELOG.md)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyswhut%2Flrc-file-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyswhut%2Flrc-file-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyswhut%2Flrc-file-parser/lists"}