UNPKG

taglib-wasm

Version:

TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps

90 lines (89 loc) 2.03 kB
const BASIC_PROPERTIES = { title: { key: "TITLE", description: "The title of the track", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TIT2" }, vorbis: "TITLE", mp4: "\xA9nam", wav: "INAM" } }, artist: { key: "ARTIST", description: "The primary performer(s) of the track", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TPE1" }, vorbis: "ARTIST", mp4: "\xA9ART", wav: "IART" } }, album: { key: "ALBUM", description: "The album/collection name", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TALB" }, vorbis: "ALBUM", mp4: "\xA9alb", wav: "IPRD" } }, date: { key: "DATE", description: "The date of recording (typically year)", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TDRC" }, vorbis: "DATE", mp4: "\xA9day", wav: "ICRD" } }, trackNumber: { key: "TRACKNUMBER", description: "The track number within the album", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TRCK" }, vorbis: "TRACKNUMBER", mp4: "trkn", wav: "ITRK" } }, genre: { key: "GENRE", description: "The musical genre", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "TCON" }, vorbis: "GENRE", mp4: "\xA9gen", wav: "IGNR" } }, comment: { key: "COMMENT", description: "Comments or notes about the track", type: "string", supportedFormats: ["ID3v2", "MP4", "Vorbis", "WAV"], mappings: { id3v2: { frame: "COMM" }, vorbis: "COMMENT", mp4: "\xA9cmt", wav: "ICMT" } } }; export { BASIC_PROPERTIES };