{"id":18726846,"url":"https://github.com/voltraco/node-taglib2","last_synced_at":"2025-04-12T16:32:04.471Z","repository":{"id":65514056,"uuid":"55528460","full_name":"voltraco/node-taglib2","owner":"voltraco","description":"A rewrite of the now unmaintained node-taglib","archived":false,"fork":false,"pushed_at":"2023-03-01T09:35:44.000Z","size":13061,"stargazers_count":41,"open_issues_count":11,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T11:01:41.806Z","etag":null,"topics":["metadata","music","taglib","tags"],"latest_commit_sha":null,"homepage":"","language":"C++","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/voltraco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-05T17:34:53.000Z","updated_at":"2024-02-05T18:18:48.000Z","dependencies_parsed_at":"2023-02-09T10:46:20.551Z","dependency_job_id":null,"html_url":"https://github.com/voltraco/node-taglib2","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Fnode-taglib2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Fnode-taglib2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Fnode-taglib2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voltraco%2Fnode-taglib2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voltraco","download_url":"https://codeload.github.com/voltraco/node-taglib2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151582,"owners_count":21056135,"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":["metadata","music","taglib","tags"],"created_at":"2024-11-07T14:15:39.584Z","updated_at":"2025-04-12T16:31:59.460Z","avatar_url":"https://github.com/voltraco.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\ntaglib version 2 bindings\n\n# BUILD STATUS\n[![Build status](https://ci.appveyor.com/api/projects/status/fkt7jiqubahuja5o?svg=true)](https://ci.appveyor.com/project/0x00A/node-taglib2)\n\n# INSTALLATION\n\n### OSX/Linux\n\nYou need to have installed a proper C/C++ compiler toolchain, like GCC (For OSX please download [Xcode and Command Line Tools](https://developer.apple.com/xcode/))\n\n### Windows\n\nYou need to have Visual C++ Build Environment setup, which you can download as a standalone [Visual C++ Build Tools](http://landinghub.visualstudio.com/visual-cpp-build-tools) package or get it as part of [Visual Studio 2015](https://www.visualstudio.com/products/visual-studio-community-vs).\n\n# USAGE\nFor example, with electron...\n\n```\nELECTRON=1 npm install\n```\n\n### WRITING TAGS\nNote that `track` will overwrite `tracknumber` if specified in the same write.\n\n```js\nconst taglib = require('taglib2')\nconst mime = require('node-mime')\nconst fs = require('fs')\n\nconst props = {\n  artist: 'Howlin\\' Wolf',\n  title: 'Evil is goin\\' on',\n  album: 'Smokestack Lightnin\\'',\n  comment: 'Chess Master Series',\n  genre: 'blues',\n  year: 1951,\n  track: 3,\n  tracknumber: '1/1',\n  discnumber: '1/1',\n  pictures: [\n    {\n      \"mimetype\": mime('./cover.jpg'),\n      \"picture\": fs.readFileSync('./cover.jpg')\n    } \n  ],\n}\n\ntaglib.writeTagsSync('./file.mp3', props)\n```\n\n### READING TAGS\n\n```js\nconst taglib = require('taglib2')\nconst tags = taglib.readTagsSync('./file.mp3')\n```\n\n#### OUTPUT\n`tags.pictures` will be an array of buffers that contain image data.\n\n```json\n{\n  \"artist\": \"Howlin' Wolf\",\n  \"albumartist\": \"Howlin' Wolf\",\n  \"title\": \"Evil is goin' on\",\n  \"album\": \"Smokestack Lightnin'\",\n  \"comment\": \"Chess Master Series\",\n  \"composer\": \"Chester Burnett\",\n  \"genre\": \"blues\",\n  \"year\": 1951,\n  \"track\": 3,\n  \"tracknumber\": \"3/3\",\n  \"discnumber\": \"1/1\",\n  \"pictures\": [\n    {\n      \"mimetype\": \"image/jpeg\",\n      \"picture\": \u003cBuffer ff d8 ff e0 00 10 4a 46 49 46 00 01 ... \u003e\n    } \n  ],\n  \"bitrate\": 192,\n  \"bpm\": 120,\n  \"samplerate\": 44100,\n  \"channels\": 2,\n  \"compilation\": false,\n  \"time\": \"1:30\",\n  \"length\": 90\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltraco%2Fnode-taglib2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoltraco%2Fnode-taglib2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltraco%2Fnode-taglib2/lists"}