README
twitter-user-info
Get a twitter user's info and stats.
Installing
npm i twitter-user-info
Usage
const twitterUserInfo = require('twitter-user-info');
twitterUserInfo('realdonaldtrump', function(result) {
if (!result) {
return console.error("User not found!")
}
console.log(result) /* {
username: 'realDonaldTrump',
display_name: 'Donald J. Trump',
profile_created: 'Mar 18th, 2009',
profile_url: 'http://twitter.com/realDonaldTrump',
profile_picture: 'https://pbs.twimg.com/profile_images/874276197357596672/kUuht00m.jpg',
profile_banner: 'https://pbs.twimg.com/profile_banners/25073877/1604214583',
followers: '88,570,450',
followings: '50',
likes: '6',
tweets: '58,176'
}*/
})