{"id":18386457,"url":"https://github.com/stemmlerjs/music-metadata","last_synced_at":"2025-04-07T00:33:12.870Z","repository":{"id":57305575,"uuid":"74236309","full_name":"stemmlerjs/music-metadata","owner":"stemmlerjs","description":"Get album / artist artwork and metadata for use in music apps","archived":false,"fork":false,"pushed_at":"2019-02-23T21:48:02.000Z","size":6,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-17T02:04:20.819Z","etag":null,"topics":["album-cover","api","artwork","metadata","music"],"latest_commit_sha":null,"homepage":null,"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/stemmlerjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-19T21:24:46.000Z","updated_at":"2021-09-07T02:30:30.000Z","dependencies_parsed_at":"2022-09-02T05:50:34.854Z","dependency_job_id":null,"html_url":"https://github.com/stemmlerjs/music-metadata","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/stemmlerjs%2Fmusic-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Fmusic-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Fmusic-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Fmusic-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stemmlerjs","download_url":"https://codeload.github.com/stemmlerjs/music-metadata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223267999,"owners_count":17116731,"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":["album-cover","api","artwork","metadata","music"],"created_at":"2024-11-06T01:22:06.615Z","updated_at":"2024-11-06T01:22:07.225Z","avatar_url":"https://github.com/stemmlerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Music Metadata\n\u003e Get album / artist artwork and metadata\n\n\n## Install\n\n```bash\n$ npm install --save music-md\n```\n\n\n## Usage\n\n```js\n\nvar musicMeta = require('music-md')\n\nmusicMeta.getAlbum('Goo', 'Sonic Youth', 'large')\n  .then(function(data) {\n    // console.log(data)\n    // =\u003e \n          { artist: 'Sonic Youth',\n            album: 'Goo',\n            albumArtwork: 'https://lastfm-img2.akamaized.net/i/u/174s/9fecf539cc254e87b7b44035efd93ea7.png',\n            trackList:\n             [ { title: 'Dirty Boots', duration: '290', trackNo: 1 },\n               { title: 'Tunic (Song for Karen)', duration: '377', trackNo: 2 },\n               { title: 'Mary-Christ', duration: '188', trackNo: 3 },\n               { title: 'Kool Thing', duration: '244', trackNo: 4 },\n               { title: 'Mote', duration: '456', trackNo: 5 },\n               { title: 'My Friend Goo', duration: '138', trackNo: 6 },\n               { title: 'Disappearer', duration: '295', trackNo: 7 },\n               { title: 'Mildred Pierce', duration: '132', trackNo: 8 },\n               { title: 'Cinderella\\'s Big Score', duration: '354', trackNo: 9 },\n               { title: 'Scooter + Jinx', duration: '60', trackNo: 10 },\n               { title: 'Titanium Expose', duration: '285', trackNo: 11 } ] \n    }\n  })\n\n\nmusicMeta.getArtistInfoAndImage('Nine Inch Nails', 'medium')\n  .then(function(data) {\n    // console.log(data)\n    // =\u003e \n      { artwork: 'https://lastfm-img2.akamaized.net/i/u/64s/4395b0232dda4cd08e1a871f5ecf1714.png',\n        bio: \"Nine Inch Nails is a Cleveland, OH, USA, Industrial rock band that was formed in 1988 by Trent Reznor, the only constant member of the band. He\\'s generally credited for popularizing the genre known as \"industrial rock\" with both his releases and dark, theatrical music videos.\\n\\nBorn Michael Trent Reznor, he was raised by his maternal grandparents in Mercer, Pennsylvania, USA. Reznor took up piano at the age of five and in high school took up the tuba and saxophone. In the early to mid-80s...\",\n        tags:  ['industrial',\n         'industrial rock',\n         'rock',\n         'alternative',\n         'electronic']\n    }\n  })\n\n```\n\n## API\n\n### getAlbum(album, artist, size)\n\n#### album\n\n*Required*  \nType: `string`\n\nTitle of the album to search for.\n\n#### artist\n\n*Required* \nType: `string`\n\nAlbum's artist.\n\n#### size\n\n*Required* \nType: `string` \n\n*possible values:* `small`, `medium`, `large`, `extralarge`, `mega`\n\nSize of album image to return.\n\n#### Returns new Promise()\n\n### getArtist(artist, size)\n\n#### artist\n\n*Required*  \nType: `string`\n\nTitle of the artist to search for.\n\n#### size\n\n*Required* \nType: `string` \n\n*possible values:* `small`, `medium`, `large`, `extralarge`, `mega`\n\nSize of artist image to return.\n\n#### Returns new Promise()\n\n## License\n\nThis package uses the Last.fm API for it's data. You may consult the [Last.fm API Terms of Service](http://www.last.fm/api/tos) for license details. \n\nMIT License - [Khalil Stemmler](http://khalilstemmler.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Fmusic-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstemmlerjs%2Fmusic-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Fmusic-metadata/lists"}