musicbrainz-api
musicbrainz-api copied to clipboard
README examples not up to date
I was having trouble getting the examples to work in the README, but after digging into the source code I figured out they were using an old version of the library:
For example:
const artist = await mbApi.lookupEntity('artist', {query: 'ab2528d9-719f-4261-8098-21849222a0f2'});
Should be:
const artist = await mbApi.lookupEntity('artist', 'ab2528d9-719f-4261-8098-21849222a0f2');
Hi @richsoni
thank you for reporting. I've created a Pull request to update/fix the examples.
thanks!!!