# @types/lyric-parser

> TypeScript definitions for lyric-parser

Latest version **1.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/lyric-parser
pnpm add @types/lyric-parser
yarn add @types/lyric-parser
bun add @types/lyric-parser
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-11-07 |
| First published | 2019-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/lyric-parser
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lyric-parser
- npm.io page: https://npm.io/package/@types/lyric-parser

## Recent versions

- 1.0.4 (latest) — 2023-11-07
- 1.0.2 (ts3.0) — 2020-05-18
- 1.0.1 (ts2.8) — 2020-04-06
- 1.0.0 (ts2.0) — 2019-08-27
- 1.0.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/lyric-parser`

# Summary
This package contains type definitions for lyric-parser (https://github.com/ustbhuangyi/lyric-parser).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lyric-parser.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lyric-parser/index.d.ts)
````ts
declare class Lyric {
    constructor(lrc: string, handler: (params: { lineNum: number; txt: string }) => void);

    lrc: string;
    tags: { album: string; artist: string; by: string; offset: string; title: string };
    lines: Array<{ time: number; txt: string }>;
    handler: (params: { lineNum: number; txt: string }) => void;
    state: number;
    curLine: number;

    play(startTime: number, skipLast?: boolean): void;

    togglePlay(): void;

    stop(): void;

    seek(offset: number): void;
}

export = Lyric;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Wang KaiLing](https://github.com/wkl007).

---
_Source: https://npm.io/package/@types/lyric-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
