Comments (2)
I added at v1.2.0
the ability to disable fallback avatar.
Now have the right avatar from a list of usernames or emails is so easy 🙂
'use strict'
const got = require('got')
const pAny = require('p-any')
const unavatar = async username =>
got(`http://localhost:3000/twitter/${username}?json&fallback=false`, {
json: true
}).then(res => res.body)
const usernames = ['oadsopadk', 'oaksdpoksadpokaopd', 'kikobeats']
const promises = usernames.map(username => unavatar(username))
pAny(promises).then(json => console.log('done', json.url))
from unavatar.
nice 👏
from unavatar.
Related Issues (20)
- Is there any way to get the avatar back on avatars.io? HOT 1
- Some domain avatars no longer rendering HOT 17
- Any plans to support crypto wallets? HOT 2
- Upgrade to `helmet` 5.0.0 has caused CORS issues HOT 6
- Use fallback avatar in case fallback URL is not reachable HOT 3
- Add `meetup` provider HOT 1
- All providers return the default avatar HOT 5
- add `providers` query parameters
- Add `discord` provider
- revamp website
- Add `tiktok` provider
- Add `readcv` provider
- Looking up by email return default tiktok image HOT 3
- Implement a banner art fetching option HOT 1
- Whats the default source for username query HOT 2
- gravatar avatar not updating HOT 9
- tiktok default image in 404 case HOT 1
- live service seems down? HOT 2
- Add Twitch provider HOT 1
- Images not loading - 524 error. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unavatar.