taglib-wasm
Version:
TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps
23 lines • 748 B
TypeScript
/**
* Scanning operations for folder-level metadata reading
*/
import type { FolderScanOptions, FolderScanResult } from "./types.js";
/**
* Scan a folder and read metadata from all audio files
*
* @param folderPath - Path to the folder to scan
* @param options - Scanning options
* @returns Metadata for all audio files found
*
* @example
* ```typescript
* const result = await scanFolder("/path/to/music");
* for (const item of result.items) {
* if (item.status === "ok") {
* console.log(`${item.path}: ${item.tags.artist} - ${item.tags.title}`);
* }
* }
* ```
*/
export declare function scanFolder(folderPath: string, options?: FolderScanOptions): Promise<FolderScanResult>;
//# sourceMappingURL=scan-operations.d.ts.map