1.0.4 • Published 10 years ago
nhlpimg v1.0.4
NHL Player Image Grabber :trophy:
NPM/Node CLI utility that finds NHL Player headshot images.
Usage
$ sudo npm install -g nhlpimg
$ nhlpimg "FIRST_NAME LAST_NAME"Example
$ 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.pngOutput
- [URL]Player image found.
- * [URL]Second name-matching image was found (after first match returned a default image).
- DEF_IMAGE_GOALIEDefault goaltender image was found (https://goo.gl/r60Q8q).
- DEF_IMAGE_SKATERDefault skater image was found (https://goo.gl/CJSjvn).
- CONNECTION_ERRORError connecting/scanning NHL website.
- NOT_FOUNDImage was not found.