taglib-wasm
Version:
TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps
27 lines • 1.73 kB
TypeScript
/**
* @fileoverview MessagePack integration for TagLib-Wasm
*
* Provides high-performance binary serialization for audio metadata,
* offering 10x faster processing and 50% smaller payloads compared to JSON.
*
* This module integrates with the Phase 2.5 C API that outputs MessagePack
* data directly from TagLib operations.
*
* @example
* ```typescript
* import { decodeTagData, encodeTagData } from "./msgpack/index.js";
*
* // Decode MessagePack data from C API
* const tagData = decodeTagData(msgpackBuffer);
* console.log(tagData.title, tagData.artist);
*
* // Encode tag data for writing back
* const encoded = encodeTagData(modifiedTags);
* ```
*/
export { decodeAudioProperties, decodeFastTagData, decodeMessagePack, decodeMessagePackAuto, decodePicture, decodePictureArray, decodePropertyMap, decodeTagData, getMessagePackInfo, isValidMessagePack, } from "./decoder.js";
export { canEncodeToMessagePack, compareEncodingEfficiency, encodeAudioProperties, encodeBatchTagData, encodeFastTagData, encodeMessagePack, encodeMessagePackCompact, encodeMessagePackStream, encodePicture, encodePictureArray, encodePropertyMap, encodeTagData, estimateMessagePackSize, } from "./encoder.js";
export type { AutoDetectionConfig, AutoDetectionResult, BatchProcessingResult, DecodingResult, EncodingResult, FormatComparison, FormatVersion, MessagePackCompatible, MessagePackData, MessagePackDataType, MessagePackError, MessagePackErrorInfo, MessagePackMetrics, MessagePackValue, StreamingConfig, TagLibMessagePackData, TagLibMessagePackMarker, ValidationResult, } from "./types.js";
export { TAGLIB_MSGPACK_MARKERS } from "./types.js";
export { MessagePackUtils } from "./utils.js";
//# sourceMappingURL=index.d.ts.map