github-avatar
fetch the github avatar for a user
example
simple
var avatar = ;var fs = ;;
using leveldb for caching
var avatar = ;var fs = ;var level = ;var img = ;img;
methods
var avatar =
var img = avatar(username, opts)
Return a readable stream img
of jpeg image data for the github user
username
.
Optionally:
opts.db
- a leveldb handle to use for cachingopts.size
- size in pixels of the image to generateopts.maxAge
- how long in milliseconds to keep an image in the cache
install
With npm do:
npm install github-avatar
license
MIT