Get an album or artist image url in node: "The Beatles" ➔ http://path/to/beatles.jpg
$ npm install --save album-artvaralbumArt=require('album-art');albumArt('The Beatles',function(err,url){console.log(url);//=> http://path/to/beatles.jpg});albumArt('The Beatles','Abbey Road','large',function(err,url){console.log(url);//=> http://path/to/beatles/abbey_road_large.jpg});Required
Type: string
Artist to search for.
Type: string
Album to search for.
Type: string
possible values:small, medium, large, extralarge, mega
Size of image to return.
Required
You can also use it as a CLI app by installing it globally:
$ npm install --global album-art$ album-art --help
Usage
$ album-art artist [album] [small|medium|large|extralarge|mega]
Example
$ album-art 'The Beatles''Abbey Road' large
http://path/to/beatles/abbey_road_large.jpgThis package uses the Last.fm API for it's data. You may consult the Last.fm API Terms of Service for license details.