UNPKG

taglib-wasm

Version:

TagLib for TypeScript platforms: Deno, Node.js, Bun, Electron, browsers, and Cloudflare Workers

91 lines (90 loc) 2.05 kB
const BASIC_PROPERTIES = { // 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 };