# @types/musicmetadata

> TypeScript definitions for musicmetadata

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

## Install

```sh
npm install @types/musicmetadata
pnpm add @types/musicmetadata
yarn add @types/musicmetadata
bun add @types/musicmetadata
```

## 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 | 2.0.9 |
| Published | 2023-11-07 |
| First published | 2016-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 2.0.9 (latest) — 2023-11-07
- 2.0.6 (ts3.6) — 2021-07-09
- 2.0.4 (ts2.0) — 2017-07-25
- 2.0.8 — 2023-10-18
- 2.0.7 — 2023-09-27
- 2.0.5 — 2021-07-08
- 2.0.3 — 2017-04-17
- 2.0.2 — 2016-11-21
- 2.0.1 — 2016-09-19

## README

# Installation
> `npm install --save @types/musicmetadata`

# Summary
This package contains type definitions for musicmetadata (https://www.npmjs.com/package/musicmetadata).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/musicmetadata.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/musicmetadata/index.d.ts)
````ts
/// <reference types="node" />

declare module "musicmetadata" {
    import { Readable } from "stream";
    import { EventEmitter } from "events";

    function mm(readStream: Readable, callback: (err: Error, metadata: MM.Metadata) => void): EventEmitter;
    function mm(
        readStream: Readable,
        options: MM.Options,
        callback: (err: Error, metadata: MM.Metadata) => void,
    ): EventEmitter;

    namespace mm {}

    export = mm;
}

declare namespace MM {
    export interface Options {
        duration?: boolean | undefined;
        fileSize?: number | undefined;
    }

    export interface Metadata {
        artist: string[];
        album: string;
        albumartist: string[];
        title: string;
        year: string;
        track: NoOf;
        disk: NoOf;
        genre: string[];
        picture: Picture[];
        duration: number;
    }

    export interface NoOf {
        no: number;
        of: number;
    }

    export interface Picture {
        format: string;
        data: Buffer;
    }
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Xavier Stouder](https://github.com/Xstoudi).

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