{"id":28412367,"url":"https://github.com/chunqiuyiyu/mutag","last_synced_at":"2025-09-20T23:20:30.019Z","repository":{"id":22357932,"uuid":"96023191","full_name":"chunqiuyiyu/mutag","owner":"chunqiuyiyu","description":"A simple library to get metadata of MP3 files.","archived":false,"fork":false,"pushed_at":"2025-08-21T15:51:45.000Z","size":744,"stargazers_count":31,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T13:20:43.194Z","etag":null,"topics":["es6","id3","music","npm-package","parser","tags"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chunqiuyiyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"chunqiuyiyu","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://www.paypal.me/chunqiuyiyu"}},"created_at":"2017-07-02T12:53:57.000Z","updated_at":"2025-07-12T21:27:51.000Z","dependencies_parsed_at":"2023-01-13T21:58:30.025Z","dependency_job_id":"98131b56-6209-4b98-9c21-ccf71da0d6e9","html_url":"https://github.com/chunqiuyiyu/mutag","commit_stats":{"total_commits":65,"total_committers":3,"mean_commits":"21.666666666666668","dds":"0.32307692307692304","last_synced_commit":"65e3309086cf4a890ef85d3c402a80cf8f0caf41"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chunqiuyiyu/mutag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunqiuyiyu%2Fmutag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunqiuyiyu%2Fmutag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunqiuyiyu%2Fmutag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunqiuyiyu%2Fmutag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chunqiuyiyu","download_url":"https://codeload.github.com/chunqiuyiyu/mutag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chunqiuyiyu%2Fmutag/sbom","scorecard":{"id":282163,"data":{"date":"2025-08-11","repo":{"name":"github.com/chunqiuyiyu/mutag","commit":"04babbfd90e03ac54b01214ffee8da5a8f9f16ae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T16:10:33.218Z","repository_id":22357932,"created_at":"2025-08-17T16:10:33.218Z","updated_at":"2025-08-17T16:10:33.218Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276169966,"owners_count":25597031,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["es6","id3","music","npm-package","parser","tags"],"created_at":"2025-06-02T21:17:14.287Z","updated_at":"2025-09-20T23:20:30.011Z","avatar_url":"https://github.com/chunqiuyiyu.png","language":"JavaScript","funding_links":["https://ko-fi.com/chunqiuyiyu","https://www.paypal.me/chunqiuyiyu"],"categories":[],"sub_categories":[],"readme":"# Mutag\n\u003e A simple MP3 file tag parser.\n\n[![npm](https://img.shields.io/npm/dt/mutag.svg?style=flat-square)](https://www.npmjs.com/package/mutag)\n[![GitHub package version](https://img.shields.io/github/package-json/v/chunqiuyiyu/mutag.svg?style=flat-square)](https://github.com/chunqiuyiyu/mutag)\n[![license](https://img.shields.io/github/license/chunqiuyiyu/mutag.svg?style=flat-square)](https://github.com/chunqiuyiyu/mutag/blob/master/LICENSE)\n\nYou can use it to get album photo, album name, date, style and other information in MP3 music files.\n\n[中文文档](./doc/README.cn.md)\n\n## Preview\n[Demo](http://www.chunqiuyiyu.com/mutag/)\n\n## Installation\n```\nnpm install mutag\n```\n\n## Usage\nIn the browser, you should import  `dist/mutag.min.js`  and then use `window.mutag`.\n```html\n\u003cscript src=\"../dist/mutag.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    const mutag = window.mutag;\n    // the type of input element is 'file'\n    const inputDOM = document.querySelector('.file-input');\n    inputDOM.addEventListener('change', e =\u003e {\n        const file = e.target.files[0];\n        mutag.fetch(file).then((tags) =\u003e {\n            //get all tags\n            console.log(tags);\n        });\n    }, false);\n```\n\nIn Node.js, Mutag should be introduced with the `require` method.\n```javascript\nconst fs = require('fs');\nconst mutag = require('mutag');\n\nfs.readFile('path/to/file.mp3', (err, data) =\u003e {\n  mutag.fetch(data).then((tags) =\u003e {\n    //get all tags\n    console.log(tags);\n  });\n});\n```\n\n## API\n### mutag.fetch(blob)\nParse the MP3 file and return a Promise object. The parameter is a Blob object. In the browser, the Blob object can be obtained by listening for the `onchange` event of the `input` (attribute `type=\"file\"`), or by listening for the element's `ondrop` event, or passing Ajax. In Node.js, we can get it with the `fs.readFile()` API.\nReturn value is a Promise object. if there is no error, you can get all existing MP3 file tags in the callback function `resolve` with its `then` method.\n\n### mutag.version\nReturn the version number of Mutag.\n\n## Tag description\nMutag can parse ID3v2.3. Some common tags are as follows:\n\n|Tag|Description\n|:----:|:----|\n|APIC|Attached picture, mostly in JPG format, few in PNG format|\n|COMM|Comments, release notes for music files|\n|GEOB|General encapsulated object|\n|PRIV|Private frame, a series of private labels defined by Windows Media|\n|TALB|Album/Movie/Show title|\n|TCOM|Composer|\n|TCON|Content type, music style, different numbers represent different styles, [here](https://github.com/chunqiuyiyu/mutag/blob/master/src/common/TCON.txt) are details.|\n|TIT2|Title/songname/content description|\n|TPE1|Lead performer(s)/Soloist(s)|\n|TPUB|Publisher|\n|TRCK|Track number/Position in set|\n|TYER|Year|\n\nFor more information on tags, please check [here](https://github.com/chunqiuyiyu/mutag/blob/master/src/common/tags.txt).\n\n## Browser compatibility\nI use some newer APIs such as `TextDecoder`, `Blob`, and `FileReader`, so only modern browsers (new versions of Chrome, Firefox, Edge, etc.) are supported.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunqiuyiyu%2Fmutag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchunqiuyiyu%2Fmutag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchunqiuyiyu%2Fmutag/lists"}