{"id":19219940,"url":"https://github.com/huanghaiyang/nodejs-id3-reader","last_synced_at":"2025-07-06T17:33:21.296Z","repository":{"id":33146754,"uuid":"36786569","full_name":"huanghaiyang/nodejs-id3-reader","owner":"huanghaiyang","description":"mp3 id3 标签检测","archived":false,"fork":false,"pushed_at":"2015-06-06T10:57:08.000Z","size":148,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T01:08:20.731Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huanghaiyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-03T07:16:07.000Z","updated_at":"2020-07-15T02:37:14.000Z","dependencies_parsed_at":"2022-09-10T22:41:25.954Z","dependency_job_id":null,"html_url":"https://github.com/huanghaiyang/nodejs-id3-reader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanghaiyang%2Fnodejs-id3-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanghaiyang%2Fnodejs-id3-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanghaiyang%2Fnodejs-id3-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huanghaiyang%2Fnodejs-id3-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huanghaiyang","download_url":"https://codeload.github.com/huanghaiyang/nodejs-id3-reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253851060,"owners_count":21973673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T14:33:22.426Z","updated_at":"2025-05-13T01:08:45.635Z","avatar_url":"https://github.com/huanghaiyang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-id3-reader\nmp3文件id3标签检测工具,\nfork from： \u003ca href=\"https://github.com/aadsm/JavaScript-ID3-Reader\"\u003eJavaScript-ID3-Reader\u003c/a\u003e\n\n\n##使用方法\n*  安装\n\t\u003cp\u003e\u003ccode\u003enpm install nodejs-id3-reader\u003c/code\u003e\u003c/p\u003e\n*  引用\n\t\u003cp\u003e\u003ccode\u003evar id3Reader = require(\"nodejs-id3-reader\");\u003c/code\u003e\u003c/p\u003e\n\n###API\n*  根据MP3文件路径读取文件中的标签\n\t\u003cp\u003e\u003ccode\u003eid3Reader.localTags(localFilePath , callback , options);\u003c/code\u003e\u003c/p\u003e\n*  读取的标签会保存在id3Reader对象内部，方便下次读取，用来作为缓存使用，读取文件的所有标签可通过\n\t\u003cp\u003e\u003ccode\u003eid3Reader.getAllTags(localFilePath);\u003c/code\u003e\u003c/p\u003e\n*  获取指定标签\n\t\u003cp\u003e\u003ccode\u003eid3Reader.getTag(localFilePath , tags);\u003c/code\u003e\u003c/p\u003e\n*  id3Reader对象内部保存的标签结构如下\n\t\u003cpre\u003e\u003ccode\u003e\n\t{\n\t\t'E:/Immortals.mp3':{\n\t\t\ttitle : 'Fall Out Boy - Immortals (End Credit Version) [＂From ＂Big Hero 6”]',\n\t\t\tablum : 'Big Hero 6',\n\t\t\taitist : 'Fall Out Boy',\n\t\t\t...\n\t\t},\n\t\t...\n\t}\n\t\u003c/code\u003e\u003c/pre\u003e\n*  清除已经读取过的标签\n\t\u003cp\u003e\u003ccode\u003eclearTags(localFilePath);\u003c/code\u003e\u003c/p\u003e\n*  清除所有标签\n\t\u003cp\u003e\u003ccode\u003eclearAll();\u003c/code\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanghaiyang%2Fnodejs-id3-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuanghaiyang%2Fnodejs-id3-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuanghaiyang%2Fnodejs-id3-reader/lists"}