Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-lrc
A javascript lrc parser.
https://github.com/afeiship/next-lrc
audio javascript-lrc-parser lrc lyric lyricist movie music next parser story subtitle video
Last synced: 18 days ago
JSON representation
A javascript lrc parser.
- Host: GitHub
- URL: https://github.com/afeiship/next-lrc
- Owner: afeiship
- License: mit
- Created: 2020-11-21T03:47:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T08:44:02.000Z (almost 4 years ago)
- Last Synced: 2024-10-22T21:55:20.156Z (29 days ago)
- Topics: audio, javascript-lrc-parser, lrc, lyric, lyricist, movie, music, next, parser, story, subtitle, video
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-lrc
> A javascript lrc parser.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-lrc
```## usage
```js
import '@jswork/next-lrc';const str = fs.readFileSync('./__tests__/E203.lrc').toString();
nx.lrc(str);
/*
[
{
clock: '00:00.800',
timestamp: 800,
value: '--- lesson 1 A private conversation 私人谈话',
times: [ '00:00.800', '00:06.200' ],
duration: 5400
},
{
clock: '00:06.200',
timestamp: 6200,
value: '--- First listen and then answer the question.^听录音,然后回答以下问题。',
times: [ '00:06.200', '00:12.120' ],
duration: 5920
},
{
clock: '00:12.120',
timestamp: 12120,
value: '--- Why did the writer complain to the people behind him?',
times: [ '00:12.120', '00:19.840' ],
duration: 7720
},
// ....
*/
```## license
Code released under [the MIT license](https://github.com/afeiship/next-lrc/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-lrc
[version-url]: https://npmjs.org/package/@jswork/next-lrc[license-image]: https://img.shields.io/npm/l/@jswork/next-lrc
[license-url]: https://github.com/afeiship/next-lrc/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-lrc
[size-url]: https://github.com/afeiship/next-lrc/blob/master/dist/next-lrc.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-lrc
[download-url]: https://www.npmjs.com/package/@jswork/next-lrc