NPM/Node CLI utility that finds NHL Player headshot images.
$ sudo npm install -g nhlpimg
$ nhlpimg "FIRST_NAME LAST_NAME"
$ nhlpimg "Sidney Crosby"
» https://nhl.bamcontent.com/images/headshots/current/168x168/8471675.png
$ nhlpimg "Wayne Gretzky"
» https://nhl.bamcontent.com/images/headshots/current/168x168/8447400.png
-
[URL]
Player image found. -
* [URL]
Second name-matching image was found (after first match returned a default image). -
DEF_IMAGE_GOALIE
Default goaltender image was found (https://goo.gl/r60Q8q). -
DEF_IMAGE_SKATER
Default skater image was found (https://goo.gl/CJSjvn). -
CONNECTION_ERROR
Error connecting/scanning NHL website. -
NOT_FOUND
Image was not found.