2.0.9 • Published 6 months ago

@types/musicmetadata v2.0.9

Weekly downloads
51
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for musicmetadata 2.0.4
// Project: https://www.npmjs.com/package/musicmetadata
// Definitions by: Xavier Stouder <https://github.com/Xstoudi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Fri, 09 Jul 2021 02:32:36 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Xavier Stouder.

2.0.7

8 months ago

2.0.9

6 months ago

2.0.8

7 months ago

2.0.5

3 years ago

2.0.6

3 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

8 years ago